WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
Pages (6) 1 2 3 4 5 [6]   ( Go to first unread post )

Printing out unicode text, do I need stdio.inc? How to print unicode text using the Microsoft Macro Assembler.

LaHire
Quote Post


Active Member
***

Group: Members
Posts: 44
Member No.: 5774
Joined: 15-February 08


Ratch,

Sorry I wanted to say:

MyText dw 'U','n','i','c','o','d','e',' ','1','2','3',0

CODE

you can use WORD 01234H,07890


Not convenient. I just let you to imagine a program in many languages or with many paragraphs. ^^'

PM
Top
Ratch
Quote Post


New Member
*

Group: Members
Posts: 17
Member No.: 5803
Joined: 8-March 08


LaHire,
QUOTE
Sorry I wanted to say:

MyText dw 'U','n','i','c','o','d','e',' ','1','2','3',0


Well, the above example is just the problem my MACRO FUNCTION is supposed to alleviate. No need to use all those quotes?

QUOTE

you can use WORD 01234H,07890




Not convenient. I just let you to imagine a program in many languages or with many paragraphs.


Can't help you there. No one can. Each keyboard and its support is designed for one language. You are not going to input, say Chinese text, with an English keyboard. Ratch
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2301
Member No.: 160
Joined: 22-June 04


QUOTE
Can't help you there. No one can. Each keyboard and its support is designed for one language. You are not going to input, say Chinese text, with an English keyboard.

not sure what is this about. i'm using same keyboard to type english, russian, ukrainian and both chinese (traditional and simplified).

there are two problems: hard way to write unicode strings directly in source for assemblers and no support for unicode text by editor. there are solutions for this: usage of macros, converters from unicode text to dw and usage of additional tools to edit unicode strings/text.

everything is soluble, just needs time and work.
PMEmail PosterUsers Website
Top
LaHire
Quote Post


Active Member
***

Group: Members
Posts: 44
Member No.: 5774
Joined: 15-February 08


shoorick,

It is true that a keyboard can be either a hardware device or a windows input (for Windows OS someone can have an English keyboard and can choose let's say a Chinese and a Japanese keyboard in the language bar - as long as we have installed the keyboard we want in the Regional settings).

Thank you for the analysis of the situation. Just 3 solutions then.
As macro will only work with ANSI typed characters I would be interested with a converter unicode to word. Are you refering to a special software of just an hexa viewer?
PM
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2301
Member No.: 160
Joined: 22-June 04


ok. here are my ideas which i planned implement via add-ins and/or converters.

solution 1:
add-in - better way.
although IDE is ANSI application, in add-in you may create dialog via DialogParamBoxW - then controls on it will be UNICODE compatible.
then you can keep UNICODE strings in separate file and edit it with this additional window. while saving this UNICODE file the add-in will also generate include file with same strings with hex words instead chars.
you will include this inc-file into your source as it is compatible with any assembler. if you will need to make changes in strings - you call add-in again, edit and save - and again that inc-file is updated to be actual.
it's not too hard to make such add-in, but requires some time.

solution 2:
converter - more universal, but worse to integrate with IDE.
after preparation of UNICODE file with string declarations with any third-side UNICODE editor you may call this converter to produce include file, valid to use with assembler.

in both cases source UNICODE strings are stored in intouched file, easy to check and edit.
PMEmail PosterUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (6) 1 2 3 4 5 [6]  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google