Hope this'll work for other people, too, not just for me. My pageviews are currently exploding It'd be a shame if it wouldn't work properly.Guitarplayer wrote:EDIT: Mkay, since nobody objected, see http://benung.nfshost.com/archives/1721
TECH: Interlinear glosses Wordpress plugin
TECH: Interlinear glosses Wordpress plugin
For your interest, see what I've come up with over the weekend:
Re: TECH: Interlinear glosses Wordpress plugin
Superb! I'll install this immediately once I get back from uni this afternoon... and test it on my recent TC quote.
High Eolic (PDF)
Re: TECH: Interlinear glosses Wordpress plugin
Awesome! The specifiable dividing character is a nice feature, but an even nicer feature would be if you could specify a set of characters instead of just one, and if delimiting characters were (optionally?) not removed from the final gloss. This would allow people to separate columns by both word and morpheme. (Feayran, for example, looks much nicer when I align columns morpheme-by-morpheme rather than just word-by-word, since there tends to be a bucket-ton of morphemes per word.)
Re: TECH: Interlinear glosses Wordpress plugin
Can you install that on a free wordpress blog or do you have to have paid the subscription fee?
Re: TECH: Interlinear glosses Wordpress plugin
Myeah, well, I wanted basic functionality first. Hm, I can see | potentially being removed by the RegExp that deals with explicitly marking stuff for small caps because it matches anything between two |'s. Shouldn't be hard to exclude whitespaces immediately following, though. Meh, should've thought of that. Well, let's hear more people's opinions and suggestions first. However, if you don't set a delimiter specifically it won't be removed. Instead, it'll probably get its own column.Trailsend wrote:Awesome! The specifiable dividing character is a nice feature, but an even nicer feature would be if you could specify a set of characters instead of just one, and if delimiting characters were (optionally?) not removed from the final gloss.
[EDIT: Yes, the pipe character definitely clashes. Probably I should build in some check that lets you set (a) delimiter(s) to ignore?]
IIRC wordpress.com doesn't let you install your own plugins in the free variant, sadlyfinlay wrote:Can you install that on a free wordpress blog or do you have to have paid the subscription fee?
Re: TECH: Interlinear glosses Wordpress plugin
Tested here: http://jonafras.conlang.org/?p=548
And it appears to work quite well. Extremely useful. Great job, GP
EDIT: just one thing: is there any way to add your own formatting inside the 'glossed' area? I want to be able to emphasize the relevant words in the sentences for my WOTD posts, but currently it just seems to bold everything no matter what I do.
And it appears to work quite well. Extremely useful. Great job, GP
EDIT: just one thing: is there any way to add your own formatting inside the 'glossed' area? I want to be able to emphasize the relevant words in the sentences for my WOTD posts, but currently it just seems to bold everything no matter what I do.
High Eolic (PDF)
Re: TECH: Interlinear glosses Wordpress plugin
Yeah, David Peterson has also tried it out on his Kamakawi WotD blog yesterday. Nice to see it basically worksCathbad wrote:And it appears to work quite well. Extremely useful. Great job, GP
TBH I haven't tried using HTML tags in the [gloss] blockEDIT: just one thing: is there any way to add your own formatting inside the 'glossed' area? I want to be able to emphasize the relevant words in the sentences for my WOTD posts, but currently it just seems to bold everything no matter what I do.
EDIT: HTML tags somehow get filtered out I'll try seeing to that.
EDIT: Ah yes, on line 57 it currently says $content = strip_tags($content);. Shouldn't have done that. It was supposed to strip off superfluous <br />s.
Re: TECH: Interlinear glosses Wordpress plugin
OK, I've done some tentative changes to address the two issues Cathbad and Trailsend have encountered. See the updated file here: http://dl.dropbox.com/u/8026017/cb_gloss.php.txt — To test the updated file, you'll best rename your cb_gloss.php to something like cb_gloss.php.bak and replace it with the file from my Dropbox, where you'll have to strip the final .txt. It should support markup HTML tags in the [gloss]…[/gloss] block now (search for "DEFINE ALLOWED HTML TAGS") and shouldn't delete "| " anymore.
-
- Smeric
- Posts: 1258
- Joined: Mon Jun 01, 2009 3:07 pm
- Location: Miracle, Inc. Headquarters
- Contact:
Re: TECH: Interlinear glosses Wordpress plugin
Your invention has been tweeted on Twitter at least once by a popular conlang or linguistics twit. So word is spreading quickly, I hope.
[bɹ̠ˤʷɪs.təɫ]
Nōn quālibet inīquā cupiditāte illectus hoc agō
Yo te pongo en tu lugar...
Taisc mach Daró
Nōn quālibet inīquā cupiditāte illectus hoc agō
Yo te pongo en tu lugar...
Taisc mach Daró
Re: TECH: Interlinear glosses Wordpress plugin
Mh.Bristel wrote:Your invention has been tweeted on Twitter at least once by a popular conlang or linguistics twit.
Re: TECH: Interlinear glosses Wordpress plugin
Thanks! There's still some funky behavior, especially in the "visual" editing bit, but nothing too crucial. Italics at least are possible now!Guitarplayer wrote:OK, I've done some tentative changes to address the two issues Cathbad and Trailsend have encountered. See the updated file here: http://dl.dropbox.com/u/8026017/cb_gloss.php.txt — To test the updated file, you'll best rename your cb_gloss.php to something like cb_gloss.php.bak and replace it with the file from my Dropbox, where you'll have to strip the final .txt. It should support markup HTML tags in the [gloss]…[/gloss] block now (search for "DEFINE ALLOWED HTML TAGS") and shouldn't delete "| " anymore.
High Eolic (PDF)
Re: TECH: Interlinear glosses Wordpress plugin
Could you maybe PM me an example?Cathbad wrote:There's still some funky behavior, especially in the "visual" editing bit, but nothing too crucial
EDIT: I think I have found what you might have meant: HTML tags now get a zero-width space before and after them so that they don't collide with the small-caps function. I'll release an update tomorrow. I should also upload this to the Wordpress plugin repository, so you'll get an automatic notification if there's an update available.
Re: TECH: Interlinear glosses Wordpress plugin
OK, the updated file is here (still stuff to improve, though): http://benung.nfshost.com/files/cb-gloss-20120215.zip (SEE BELOW!) – Since this isn't on wordpress.org, you won't get automatic notifications on updates
Last edited by Jipí on Thu Feb 16, 2012 2:57 pm, edited 2 times in total.
Re: TECH: Interlinear glosses Wordpress plugin
It's on Wordpress.org now, so you should be able to install it even from within your blog and get updates if I should make any. Only works with self-hosted Wordpress blogs, though.