Thread: Does FGU support an Unicode?
-
March 25th, 2020, 13:44 #1
- Join Date
- Mar 2020
- Posts
- 3
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:Ç ; í ; à ; í ; è ; å ;
-
March 25th, 2020, 19:41 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,688
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
-
March 25th, 2020, 19:51 #3
-
March 25th, 2020, 20:12 #4
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
-
March 25th, 2020, 20:23 #5Private 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!
-
March 25th, 2020, 20:25 #6
Its UTF-8, but in the XML itself the characters are displayed as text without being encoded.
Ultimate License Holder
-
March 25th, 2020, 20:30 #7
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?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!
-
March 25th, 2020, 22:20 #8
- Join Date
- Mar 2020
- Posts
- 3
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.
-
March 25th, 2020, 22:44 #9
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.
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
March 25th, 2020, 22:46 #10
There is actually a detailed response from MoonWizard to a very similar discussion. See; https://www.fantasygrounds.com/forum...l=1#post485371
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks