Thread: PAR5E Tables and HTML tags
-
July 26th, 2014, 01:38 #1
- Join Date
- Oct 2005
- Posts
- 193
PAR5E Tables and HTML tags
PAR5E parses the ';' for tables without recognizing HTML tokens, resulting in oddness if one needs to embed a special character in the table.
For example:
Code:#h;Random Height and Weight #ts; #th;Race;Base Height;Height Modifier;Base Weight;Weight Modifier #tr;Human;4'8"e;;+2d10;110 lb.;x (2d4) lb. #tr;Dwarf, hill;3'8";+2d4;115 lb.;x (2d6) lb. #tr;Dwarf, mountain;4';+2d4;130 lb.;x (2d6) lb. #tr;Elf, high;4'6";+2d10;90 lb.;x (1d4) lb. #tr;Elf, wood;4'6";+2d10;100 lb.;x (1d4) lb. #tr;Halfling;2'7";+2d4;35 lb.;x 1 lb. #te;
If I simply use the " character, PAR5E escapes it rather than converting it, so I end up with \" in my text.
Either PAR5E should properly encode characters like " (turning it into ") rather than escaping them; or it should somehow recognize such tokens and ignore them when looking for a ';' in a parsed line.-Bumamgar
-
July 26th, 2014, 01:49 #2
I think the parser is configured to use the specific approach of the texts (Basic Rules, PHB etc.), so the abbreviation of 'feet' (unit of length) is 'ft.' - it won't take '. Like 'pounds' is 'lb.' and not #.
[Edit] Even though the table on p. 33 uses 4' 8" etc.Last edited by El Condoro; July 26th, 2014 at 01:51.
-
July 26th, 2014, 01:51 #3
- Join Date
- Oct 2005
- Posts
- 193
For that table the Basic rules use ' not ft. I'm copying direct from the PDF Also, the parser has no problem with ', it's " that it doesn't like...
-Bumamgar
-
July 26th, 2014, 01:59 #4
PAR5E is written in Java so if its a reserved word or symbol in Java or Javascript, change it to be safe.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks