5E Storm Kings Thunder Playlist
  1. #1

    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&quote;;+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;
    Results in a view like the attached.

    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.
    Attached Images Attached Images
    -Bumamgar

  2. #2
    El Condoro's Avatar
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    595
    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.

  3. #3
    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

  4. #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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in