1. #1

    Does FGU support an Unicode?

    Or translation still the hard work like in FGC? Copy-paste works wrong with current FGC encoding. You know, in 2020 it is a bit silly to write symbols like
    Code:
    &#199 ; &#237 ; &#224 ; &#237 ; &#232 ; &#229 ;
    Unreadable and uneditable.

  2. #2
    Where are you entering those characters?

    If they are entered in XML, then the character codes will map to the version of the character specified by the encoding at the top of the XML file. (In FGC XML export files, that is ISO-8859-1.)
    If they are entered in the UI, I believe you should just be able to enter from your keyboard, or copy and paste.

    The underlying text storage encoding in FGU is UTF-8; so it should save correctly. One caveat is that our font system currently only supports Latin1, Supplemental, Extended A and Extended B characters.

    Regards,
    JPG

  3. #3
    Mortar's Avatar
    Join Date
    May 2014
    Location
    New Brunswick, Canada
    Posts
    1,110
    Blog Entries
    18
    Quote Originally Posted by SomeFire View Post
    Or translation still the hard work like in FGC? Copy-paste works wrong with current FGC encoding. You know, in 2020 it is a bit silly to write symbols like
    Code:
     ;  ;  ;  ;  ;  ;
    Unreadable and uneditable.
    FGU will probably read those fine as plain text either via the XML or via the UI.
    Ultimate License Holder
    List of completed DLC products

  4. #4
    Mortar's Avatar
    Join Date
    May 2014
    Location
    New Brunswick, Canada
    Posts
    1,110
    Blog Entries
    18
    Just ran a quick test...

    Untitled1.jpg
    Untitled2.jpg

    Entered into the FGU UI as plain text (straight copy/paste from the quoted message in my last reply. FGU exported them into a module as plain text.
    Ultimate License Holder
    List of completed DLC products

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    26,054
    Quote Originally Posted by Mortar View Post
    FGU exported them into a module as plain text.
    I don't think that's "plain" text - check the Encoding that Notepad++ is auto detecting and displaying, probably it'll say "Encode in UTF-8".
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    Register at www.fg-con.com for all the latest info.

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  6. #6
    Mortar's Avatar
    Join Date
    May 2014
    Location
    New Brunswick, Canada
    Posts
    1,110
    Blog Entries
    18
    Its UTF-8, but in the XML itself the characters are displayed as text without being encoded.
    Ultimate License Holder
    List of completed DLC products

  7. #7
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    26,054
    Quote Originally Posted by Mortar View Post
    Its UTF-8, but in the XML itself the characters are displayed as text without being encoded.
    I'm not sure you're using the right terminology here - which is confusing us trying to be on the same page.

    As Moon Wizard said above "If they are entered in the UI, I believe you should just be able to enter from your keyboard, or copy and paste." Which is what you are seeing - you are copying/pasting direct into the UI and FG just stores that as UTF-8 in the XML. This is not "plain text" - this is UTF-8 encoded text.

    Moon Wizard also says "If they are entered in XML, then the character codes will map to the version of the character specified by the encoding at the top of the XML file. (In FGC XML export files, that is ISO-8859-1.)"

    So, are you saying things aren't working as Moon Wizard describes or they are working as described?
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    Register at www.fg-con.com for all the latest info.

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  8. #8
    Looks like forum have the same issue. Look at the screenshot: bug.png

    When I manually enter text to a story inside the FGC I see normal text (thx to custom fonts). But when I open story in the notepad++ I see special numbers (top codeblock on the screenshot) instead of readable text.

    When I copy-paste text from pdf to a story inside the FGC I see invalid characters (bottom codeblock on the screenshot) or '?' instead of any character. Same happens if I write text in XML file - in FGC I see invalid characters.

  9. #9
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    10,621
    Blog Entries
    9
    Quote Originally Posted by SomeFire View Post
    When I copy-paste text from pdf to a story inside the FGC I see invalid characters (bottom codeblock on the screenshot) or '?' instead of any character. Same happens if I write text in XML file - in FGC I see invalid characters.
    This is often do to the fonts use non-standard characters. They are called 'ligatures' and are often used to changed the spacing between characters. Such as the characters 'fl' have the two characters replaced with one character. Since those are not standard characters that come out of the PDF, their is little FG can do about it. Google the term for more details.

  10. #10
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    10,621
    Blog Entries
    9
    There is actually a detailed response from MoonWizard to a very similar discussion. See; https://www.fantasygrounds.com/forum...l=1#post485371

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
  •  
DMsGuild Classic

Log in

Log in