flat assembler
Message board for the users of flat assembler.

Index > Main > Full Unicode?

Author
Thread Post new topic Reply to topic
Bucka



Joined: 14 Jun 2012
Posts: 4
Bucka 16 Jul 2015, 12:28
How could I use 32-bit wide UNICODE character codes? For example the Old Hungarian standardized in UNICODE 8.0
Post 16 Jul 2015, 12:28
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20454
Location: In your JS exploiting you and your system
revolution 16 Jul 2015, 18:49
Do you mean UTF-32?

What do you mean by "use"? Paint glyphs to the screen? Do string manipulations? Convert to another encoding?
Post 16 Jul 2015, 18:49
View user's profile Send private message Visit poster's website Reply with quote
Bucka



Joined: 14 Jun 2012
Posts: 4
Bucka 16 Jul 2015, 21:10
Yes, I thought UTF-32!
I would like use it as string constants, and GUI representation in translated programs. I dont understand, how could it place to source codes. The dd datadirective could be used as chars?
Post 16 Jul 2015, 21:10
View user's profile Send private message Reply with quote
redsock



Joined: 09 Oct 2009
Posts: 435
Location: Australia
redsock 16 Jul 2015, 21:13
I spent a bit of time dealing with all things Unicode in my GPLv3 library, native UTF32 with <-> UTF8, UTF16: https://2ton.com.au/library_as_html/string32.inc.html (search through that for function names that contain "utf")

Edit: also see the "cleartext" macro for declaring them inline (which is native UTF32 by default, though expanded) https://2ton.com.au/library_as_html/cleartext.inc.html

For full-width Unicode chars, I have to declare them as my string library expects, e.g.:
Code:
.unistr:
  dq 4
  dd 0x2502,'B',0x2500,0x2501
    
Post 16 Jul 2015, 21:13
View user's profile Send private message Reply with quote
Bucka



Joined: 14 Jun 2012
Posts: 4
Bucka 03 Oct 2015, 17:13
I did make some macros for using Old Hungarian scripts.
It generate UTF-16 codes.
Redsock! I'm sorry, but I did not get an e-mail about your answer.


Description: This include file tested on MS Windows only.
Download
Filename: OLD_HUN_CHARS_16BIT.inc
Filesize: 2.61 KB
Downloaded: 475 Time(s)

Description: That file was the tester file...
Download
Filename: Rovásteszt.ASM
Filesize: 543 Bytes
Downloaded: 438 Time(s)

Post 03 Oct 2015, 17:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.