[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
zompist bboard :: View topic - Better formatting for interlinears on the ZBB
zompist bboard
http://www.incatena.org/

Better formatting for interlinears on the ZBB
http://www.incatena.org/viewtopic.php?f=5&t=39206
Page 1 of 1

Author:  chris_notts [ Sun Oct 16, 2011 4:23 pm ]
Post subject:  Better formatting for interlinears on the ZBB

I was wondering if it would be possible to add better support for formatting interlinear glosses to a phpbb board like the ZBB. A while ago I developed a small plugin for the dokuwiki software, that forced the morphemes in interlinear glosses to align by using tables. I've also build something similar into the new version of my blog. There's a page on that here, complete with PHP source code and an example of what it does:

http://www.chrisdb.me.uk/wiki/doku.php? ... oss_plugin

After you've packed everything into tables all you need is to apply some CSS to force the browser to display them inline and remove any borders. When I first looked at this a long time ago, I also looked at using the ruby tags, but a lot of browsers don't support them properly so inlined tables is a better approach.

It seems like this is something that would be pretty useful for something like the ZBB, given that we mostly talk about linguistics. It's a real pain when people do interlinears and the lengths of the morphemes don't line up, so it's hard to figure out which bit is which.

I've googled to find out what support phpBB has for custom tags, and it looks like it basically just done very simple find and replace using regexes. This wouldn't be enough to do the interlinears using tables. Since that's the case, it looks like you're probably have to just tag the interlinears using a span tag or similar, and then use some custom javascript to build the tables on the client-side.

Doing this shouldn't be too difficult. It would involve:

1. setting up custom tags [interlinear] which translate into <span class="interlinear">
2. writing a simple javascript function that scans through a page looking for <span class="interlinear"> and replaces it with the inlined tables, using approximately the algorithm outlined above. Each table needs to have class "interlinear"
3. adding a bit of css to inline tables with class "interlinear" and remove borders / other unwanted formatting

Is anyone else interested in this? Zompist, are you interested?

Author:  Torco [ Sun Oct 16, 2011 5:18 pm ]
Post subject:  Re: Better formatting for interlinears on the ZBB

excellent it would be
Implemented, however, I think not
nevertheless with it best of luck

Author:  zompist [ Mon Oct 17, 2011 6:54 am ]
Post subject:  Re: Better formatting for interlinears on the ZBB

If you want to try to do the work, go for it. :)

So long as spinn is hosting, I can change templates and stylesheets; I can't change any PHP files.

The thing is, the changes have to be isolated enough that they can be reapplied with phpbb updates. That is, if you change the code in a hundred places, it's not going to be easy to reapply.

Author:  chris_notts [ Tue Oct 18, 2011 1:35 pm ]
Post subject:  Re: Better formatting for interlinears on the ZBB

I guess I'll probably try to code it up in Javascript in the next week or two. When I have something that works I'll post again and ask for volunteers to test it.

Author:  Hakaku [ Tue Oct 18, 2011 3:27 pm ]
Post subject:  Re: Better formatting for interlinears on the ZBB

Actually, PhpBB3 possesses the ability to add and create new BBCode through the admin panel, which essentially consists in creating rules to replace [tags][/tags] with appropriately formatted HTML. Though you wouldn't be able to use the php code linked, you could easily find an alternative solution mixing html and css.

http://www.phpbb.com/kb/article/adding- ... in-phpbb3/

Author:  Mecislau [ Tue Oct 18, 2011 9:02 pm ]
Post subject:  Re: Better formatting for interlinears on the ZBB


Author:  chris_notts [ Wed Oct 19, 2011 2:49 am ]
Post subject:  Re: Better formatting for interlinears on the ZBB


Author:  chris_notts [ Wed Oct 19, 2011 2:52 am ]
Post subject:  Re: Better formatting for interlinears on the ZBB


Author:  Trailsend [ Wed Oct 19, 2011 10:16 am ]
Post subject:  Re: Better formatting for interlinears on the ZBB


Author:  chris_notts [ Wed Oct 19, 2011 11:29 am ]
Post subject:  Re: Better formatting for interlinears on the ZBB


Author:  Cedh [ Fri Oct 21, 2011 2:10 pm ]
Post subject:  Re: Better formatting for interlinears on the ZBB


Author:  Mecislau [ Fri Oct 21, 2011 6:03 pm ]
Post subject:  Re: Better formatting for interlinears on the ZBB


Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/