gemot encubed  

Go Back   gemot encubed > Gemot > Technical Issues

Technical Issues For bug reports, problem solving, and help running Japanese software.

Reply
 
Thread Tools Display Modes
  #1  
Old 2007-02-27, 14:08
delta delta is offline
Visitor
 
Join Date: Feb 2007
Posts: 2
Default ONScripter: single-byte text and variables

Hi. I have a problem with ONScripter, maybe someone has encountered it already and found a workaround.

Is it possible to display single-byte text stored in variables properly? let's say I have the variable "$1000", with the content "This is single-byte text". Now, in Japanese the variable would just be displayed like this:

$1000

But of course, this doesn't work properly (spaces messed up), because it needs the backtick. If I enter the backtick before the variable name, it just displays the variable name. If I put the backtick inside the variable, it isn't parsed, but displayed. Of course, the workaround is to use double-byte characters, but these are full-width and ugly, not to mention a pain to input. Of course, one could hack the font or something, but that's something I'd rather not do if at all possible.

Any ideas?
Reply With Quote
  #2  
Old 2007-02-27, 14:16
Starchanchan's Avatar
Starchanchan Starchanchan is offline
Obsessive
 
Join Date: Jul 2006
Location: in the rainstorm
Posts: 220
Send a message via AIM to Starchanchan Send a message via MSN to Starchanchan
Default

Nope. It either requires hacking of the ONScripter build, or some massive coding that's way too complicated for me (Haeleth helped me when I had the same problem).
Reply With Quote
  #3  
Old 2007-02-27, 23:38
Message's Avatar
Message Message is offline
Obsessive
 
Join Date: Dec 2003
Location: Netherlands
Posts: 323
Default

I've never tried this, but perhaps spaces are possible in static numaliases? Although the usability of that is, of course, very low. You could use several variables in sequence, but it would require some smart coding to allow for user input to be spread across them (if it's even possible). One thing you could do is use some strange unused character like | as a seperator and modify your font file to display that as a space. Won't allow for user input unless they use |s as well, but if you're only modifying it yourself it should work.

Actually using double-byte characters is not an option, unless you're planning to use NScripter or do the entire game in fullwidth. ONS does not support halfwidth and fullwidth at the same time. Come to think of it... I wonder why?
Reply With Quote
  #4  
Old 2007-02-28, 03:47
pbsaffran pbsaffran is offline
Local
 
Join Date: Feb 2007
Location: Germany
Posts: 101
Send a message via AIM to pbsaffran Send a message via Skype™ to pbsaffran
Default

Oh, but it does? I tested this.



My default language for programs that don't support Unicode is japanese though, that might be the reason.
Oh, and I do have a backquote in front of that line.
Reply With Quote
  #5  
Old 2007-02-28, 05:09
Message's Avatar
Message Message is offline
Obsessive
 
Join Date: Dec 2003
Location: Netherlands
Posts: 323
Default

Hmm... I take it you mean that 'Meme' is in fullwidth? From my experience ONS does not support leaving lines untranslated, or leaving for example fullwidth spaces in front of text lines. Now I'm confused. T__T
Reply With Quote
  #6  
Old 2007-02-28, 07:57
delta delta is offline
Visitor
 
Join Date: Feb 2007
Posts: 2
Default

Quote:
Originally Posted by Message View Post
Hmm... I take it you mean that 'Meme' is in fullwidth? From my experience ONS does not support leaving lines untranslated, or leaving for example fullwidth spaces in front of text lines. Now I'm confused. T__T
Oh, it does. It's having single- and double-byte characters on one line that causes problems. Possibly not even egregious ones, double-byte characters in single-byte lines are only really problematic in the message history. Check partially translated projects like Higurashi 7 or Kagetsu Tohya. However, I need this the other way around here, which is more of a problem. I guess I'll try inserting a blank glyph in the singe-byte section of the font.

P.S. Okay, fixed it. I blanked the circumflex glyph (which I don't need) and replaced the spaces with it, and now it works. However, a point to remember is that you have to pad the string to an even number of characters, or ONScripter will swallow the last one. In my case, I just added a normal space at the end of the string if the number of characters was uneven.

Last edited by delta; 2007-02-28 at 10:16.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting text from ONScripter Unregistered Technical Issues 4 2009-02-26 05:06
ONScripter text problems crazysjd89 Technical Issues 4 2008-02-29 10:40
Proportionally-spaced text in ONScripter games Roto Technical Issues 6 2007-01-06 15:10
Maximum number of variables in ONScripter Message Technical Issues 4 2006-10-01 23:43
Do you look up EVERY SINGLE unfamiliar word in games? DragonmasterX General Discussion 3 2006-02-24 05:17


All times are GMT -8. The time now is 23:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.