Doom monster
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Accents in SLADE 3?
 
Author
All times are GMT. The time now is 12:41. Post New Thread    Post A Reply
Phml
Forum Staple


Posts: 3278
Registered: 06-09


While I can type them just fine, after saving and loading all accents end up as gibberish characters. Google, SLADE wiki, etc. haven't been helpful. Perhaps I'm not looking at the right spot, but I don't know where to look. Is there a way to have accents in SLADE 3, or is it just something I have to learn to live without?

Old Post 12-13-12 17:15 #
Phml is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 11072
Registered: 07-07


Probably some issue with UTF-8.

That said, I can't replicate the issue. The effect I do get is that it fails to save certain odd characters, turning the lump into a marker.

All those characters are fine:
code:



Those characters (and probably more) result in the lump being saved as a marker.
code:
ĀāĂ㥹ĆćĈĉĊċČčĎď ĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤģĤĥĦħ ĨĩĪĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁł ŃńŅņŇňʼnŋŊŌōŎŏŐőŔŕ ŖŗŘřŚśŜŝŞşŢţţŤťŦŧ ŨũŪūŬŭŮůŰűŲųŴŵŶŷ ŹźŻżſƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƓƔƕ

Old Post 12-13-12 18:17 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
GhostlyDeath
Forum Retard


Posts: 1027
Registered: 08-05


The first set of characters is pure ASCII, so Slade probably isn't Unicode aware at all.

Old Post 12-13-12 18:22 #
GhostlyDeath is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8834
Registered: 06-06


That's because lumps require exactly 8 bytes, but non-US characters are usually understood in Unicode (more bytes per character!) or any of the ambiguous extended ASCII scripts (western, central European, baltic, cyrillic etc.). Basically, you either have to choose between an extended ASCII script that might look wrong in a non-western computer, or use something like UTF-8 and limit lump names with diacritics to lengths shorter than 8 bytes. In short, don't bother.

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 12-13-12 18:24 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Phml
Forum Staple


Posts: 3278
Registered: 06-09


Sorry, I explained my problem pretty poorly; rather than lump names themselves, I meant to say I could type accents within text lumps (i.e. commenting decorate) and save, but then it turns to gibberish after reloading the wad or deselecting and reselecting that particular lump. Would that be the same issue, or something different?

Old Post 12-13-12 18:56 #
Phml is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
LigH
Forum Regular


Posts: 678
Registered: 11-10


That's the main point, Phml.

Windows 9x used mainly Code page Windows-1252 for 8-bit characters (in "ANSI Strings"), NT based Windows versions (incl. 2000, XP, Vista, 7, 8) still do (despite a better support for 16-bit characters in "Wide Strings"); DOS instead (and the original DOOM is a program for DOS) used "OEM Code pages" like 437 (US), 850 (Western European), 852 (Slavic, Eastern European), 865 (Nordic European)...

In Code page 437, half of the extended character set (128-255) is used for block and line-drawing characters, not for readable text characters even.

CP 437:
http://upload.wikimedia.org/wikipedia/commons/f/f8/Codepage-437.png

CP 850:
http://upload.wikimedia.org/wikipedia/commons/9/98/Codepage-850.png

Last edited by LigH on 01-30-13 at 08:15

Old Post 01-30-13 08:02 #
LigH is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8834
Registered: 06-06


Just in to report a bug. I hope it's not platform specific, but whatever. I'm using Slade r1378 for OS X (it exists!) and I've just tried editing a text lump that initially contains only standard ASCII characters (the ones you can type from the US keyboard alone). I replaced a character with another that's not even from the traditional "western" set (ș). When I saved the lump, the lump contents got destroyed, and it became a "marker" (0-length bug)! Then I wrote one that's not from the US keyboard, but is western: . That didn't break it. Isn't this (lump deletion) a bug? I hope you can reproduce it.

Wouldn't it be better to assume UTF-8 support for viewing lump as text, instead of Windows/DOS mumbo-jumbo? That would also fix Phml's problem of text mutating, because that's precisely what happens when you change the encoding locale from "western" to another region. Optionally let the user choose non-default legacy encodings if text has already been written assuming western or OEM.

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Last edited by printz on 01-30-13 at 15:16

Old Post 01-30-13 15:10 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 11072
Registered: 07-07


That's what I was talking about earlier in the thread: some accent characters cause the text lump to become a marker lump.

I'm not sure exactly what causes this, because if I could fix it I'd be happy. This has annoyed me several times.

However, I can't replicate the bug as described by Phml, where characters turn to gibberish instead.

Old Post 01-30-13 17:07 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 12:41. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Accents in SLADE 3?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.