[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

THIS IS AN ARCHIVE ONLY - see Ephemera
It is currently Thu Sep 24, 2020 9:18 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Sun Oct 16, 2011 4:23 pm 
Avisaru
Avisaru

Joined: Wed Dec 15, 2004 9:05 am
Posts: 275
Location: Nottingham, England
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?

_________________
Try the online version of the HaSC sound change applier:


Top
 Profile  
 
PostPosted: Sun Oct 16, 2011 5:18 pm 
Smeric
Smeric
User avatar

Joined: Thu Aug 30, 2007 10:45 pm
Posts: 2373
Location: Santiago de Chile
excellent it would be
Implemented, however, I think not
nevertheless with it best of luck

_________________
-


Top
 Profile  
 
PostPosted: Mon Oct 17, 2011 6:54 am 
Boardlord
Boardlord

Joined: Thu Sep 12, 2002 8:26 pm
Posts: 3377
Location: In the den
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.


Top
 Profile  
 
PostPosted: Tue Oct 18, 2011 1:35 pm 
Avisaru
Avisaru

Joined: Wed Dec 15, 2004 9:05 am
Posts: 275
Location: Nottingham, England
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.

_________________
Try the online version of the HaSC sound change applier:


Top
 Profile  
 
PostPosted: Tue Oct 18, 2011 3:27 pm 
Lebom
Lebom
User avatar

Joined: Sat Feb 03, 2007 12:55 pm
Posts: 132
Location: 常世
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/

_________________
Chances are it's Ryukyuan ().


Top
 Profile  
 
PostPosted: Tue Oct 18, 2011 9:02 pm 
Avisaru
Avisaru
User avatar

Joined: Thu Jul 24, 2003 2:40 pm
Posts: 491
Location: Maryland

_________________
http://www.veche.net/
http://www.veche.net/novegradian - Grammar of Novegradian
http://www.veche.net/alashian - Grammar of Alashian


Top
 Profile  
 
PostPosted: Wed Oct 19, 2011 2:49 am 
Avisaru
Avisaru

Joined: Wed Dec 15, 2004 9:05 am
Posts: 275
Location: Nottingham, England

_________________
Try the online version of the HaSC sound change applier:


Last edited by chris_notts on Wed Oct 19, 2011 2:58 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Wed Oct 19, 2011 2:52 am 
Avisaru
Avisaru

Joined: Wed Dec 15, 2004 9:05 am
Posts: 275
Location: Nottingham, England

_________________
Try the online version of the HaSC sound change applier:


Top
 Profile  
 
PostPosted: Wed Oct 19, 2011 10:16 am 
Lebom
Lebom

Joined: Fri Mar 27, 2009 5:50 pm
Posts: 169


Top
 Profile  
 
PostPosted: Wed Oct 19, 2011 11:29 am 
Avisaru
Avisaru

Joined: Wed Dec 15, 2004 9:05 am
Posts: 275
Location: Nottingham, England

_________________
Try the online version of the HaSC sound change applier:


Top
 Profile  
 
PostPosted: Fri Oct 21, 2011 2:10 pm 
Sanno
Sanno

Joined: Tue Nov 14, 2006 10:30 am
Posts: 939
Location: Tübingen, Germany

_________________
Blog:
Conlangs: | | |


Top
 Profile  
 
PostPosted: Fri Oct 21, 2011 6:03 pm 
Avisaru
Avisaru
User avatar

Joined: Thu Jul 24, 2003 2:40 pm
Posts: 491
Location: Maryland

_________________
http://www.veche.net/
http://www.veche.net/novegradian - Grammar of Novegradian
http://www.veche.net/alashian - Grammar of Alashian


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group