Wikipedia:Reference desk/Archives/Computing/2009 April 11#Right-justified text in text box

{{#ifeq:{{PAGENAME}}|Special:Undelete| |{{#if:|

}} {{#ifeq:{{NAMESPACE}}|Wikipedia|{{#switch:{{NAMESPACE}}|= |
}}|{{error:not substituted|Archive header}}
}}}} {{#if:|
}}
width = "100%"
colspan="3" align="center" | Computing desk
width="20%" align="left" | < April 10

! width="25%" align="center"|<< Mar | April | May >>

! width="20%" align="right" |{{#ifexist:Wikipedia:Reference desk/Archives/Computing/2009 April 12|April 12|Current desk}} >

align=center width=95% style="background: #FFFFFF; border: 1px solid #003EBA;" cellpadding="8" cellspacing="0"
style="background: #5D7CBA; text-align: center; font-family:Arial; color:#FFFFFF;" | Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is {{#ifexist:Wikipedia:Reference desk/Archives/Computing/2009 April 21|an archive page|a transcluded archive page}}. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.

__TOC__

= April 11 =

Common displayable [[Unicode]] mathematical symbols

Sorry if this belongs in the Math section, but it kind of seeps into both. I was wondering what are the most commonly displayable. Sure, most of them can display whatever's on the keyboard, but what else? Some computers back in the day were capable of displaying things like ², «», ±, °, √, ≤, etc. Now, they have much more advanced functionality, capable of displaying obscure symbols like ►,₪,↔,∕,⌡,∂,⅝, etc. But what's the limit to these symbols? Would they be able to display Unicode characters like ⁶ (superscript 6),₍ (subscript left parenthesis), or even ℏ (reduced Planck's constant)? I don't think so. So what would be the most common set of characters that would be compatible to computers back to say, the Windows 98 era? Obviously it would be different from computer to computer, but I'm asking just for the general sets. The use of images aren't acceptable in my case. I greatly appreciate your help! Thanks so much. 141.153.214.155 (talk) 02:31, 11 April 2009 (UTC)

:Off the top of my head: Windows 98 didn't support Unicode via UTF-8, let alone any other character encoding system. A US-market copy of Windows 98 supported character set X, whereas a Japanese-market copy supported set Y. Not "X" or "Y" of course, but I forget what the names were -- all of this stuff is available for the searching within a certain online encyclopedia -- but anyway X didn't even include the Cyrillic alphabet, let alone fancy-schmancy maths symbols. What people did was to use odd, nonstandard fonts that substituted particular nonstandard symbols they wanted to use for those that they didn't want. Thus (imaginary example) Bludoni (which included ê and ç, though not ŏ or ą) might have had an additional Bludoni Math, with maths symbols taking the place of ê and ç and so forth. It was all rather nightmarish and I'd say you'd have to be perverse or masochistic to want to relive it. -- Hoary (talk) 04:05, 11 April 2009 (UTC)

::I'm pretty sure that Windows 98 didn't only support ASCII, however. I think it used the localized variations of ISO/IEC 8859. See the table in that article; it looks like what you probably want. Column 1 is the most commonly used, the Western European set. Indeterminate (talk) 10:32, 12 April 2009 (UTC)

:::Win9x didn't support Unicode in file names or in the standard GUI widgets (buttons, edit boxes, etc.) but it did support Unicode text rendering (TextOutW was implemented). Some applications (including the major web browsers and word processors) took advantage of this and provided full Unicode support. But typical applications were limited to the system default code page, which was an extended ISO Latin-N in many countries but certainly not all. I don't think there's a single non-ASCII character that's found in all of the widely used code pages. -- BenRG (talk) 16:21, 12 April 2009 (UTC)

:PCs didn't need to support displayable Unicode characters when using TeX, a typesetting program for books and theses. Most of the technical symbols used couldn't be displayed on the screen.
Sleigh (talk) 08:01, 19 April 2009 (UTC)

Music Player Site

Is there some sort of website in which you can somehow enter musical notes and it will play the music?

--Nick4404 yada yada yada What have I done? 03:32, 11 April 2009 (UTC)

:How about [http://www.musipedia.org/ Musipedia]? Oda Mari (talk) 04:43, 11 April 2009 (UTC)

:: Technically, zefrank. Search for its holiday carol music creation tool or click this: [http://www.zefrank.com/xmas/] -- Guroadrunner (talk) 05:01, 14 April 2009 (UTC)

Right-justified text in text box

Sometimes when I am editing Wikipedia, I accidentally press some key combination that causes the text in the text box to become right-justified. Similar to when you edit in Wikipedias where the writing is right to left (e.g. Hebrew, Arabic). The keys involved are some combination of :

  1. CTRL and (ALT or SHIFT)
  2. and:
  3. * some letter(s) in the lower left (on a QWERTY)
  4. * or (the left arrow xor right arrow)

This is probably more detailed than necessary, since some of you may already know the combination. What key combination causes this, and what key combination do I need to press do undo this? My current solution is to open a new window, and copy and paste my progress into that. — Twas Now ( talkcontribse-mail ) 10:12, 11 April 2009 (UTC)

:In Firefox, Ctrl+Shift+x. Same to switch it back. — Matt Eason (TalkContribs) 11:07, 11 April 2009 (UTC)

::Ha ha, thanks. That makes things easier. — Twas Now ( talkcontribse-mail ) 23:07, 11 April 2009 (UTC)

Open source game developing

Are there open source platforms out there for game developing? The main idea is that I would do the "screenplay" and graphics and put it on a kind of virtual machine that would deliver the logic behind the game.--88.6.158.100 (talk) 11:59, 11 April 2009 (UTC)

:Blender has a built-in game engine. --93.106.178.219 (talk) 12:16, 11 April 2009 (UTC)

:It does - and there are other things like it - but they don't really do what the OP needs - there is always some programming involved somewhere. Your best bet for most game genres is to find an existing game that's similar to what you want and which is 'mod-able'. SteveBaker (talk) 06:51, 12 April 2009 (UTC)

::Note however that won't meet the open source requirement. I presume the OP want his/her games to be widely available so doesn't want to limit them to people who own a certain game Nil Einne (talk) 15:43, 12 April 2009 (UTC)

:It really depends on what sort of game your talking about and what you want to do besides creating the graphics. For example, there is Adventure Game Studio which unfortunately is not open source (but is freeware) and also only has a Windows version (there used to be a Linux and Mac OS X version of the engine but that was discontinued) which is commonly used for creating amateur adventure games. As SB mentions, there are moddable FPSes, RPGs, RTSes and probably other games although these suffer the limitations I mention above. I believe ID software regularly releases the code for their older FPSes under an open source licenses and I presume versions of these have been made which are modable Nil Einne (talk) 15:43, 12 April 2009 (UTC)

:: iD games are generally moddable out of the box - but indeed, there are huge opensource communities who take the OpenSourced Quake/Doom engine code and make entirely new games with little or no actual programming. I have good friends who work at iD - they are truly one of the better software companies out there...they entirely "get it". SteveBaker (talk) 18:59, 12 April 2009 (UTC)

whats with possible loss of precision (java)

This isn't exactly what I'm trying to do, but it will illustrate what I'm asking well enough: http://www.cs.princeton.edu/introcs/31datatype/Rot13.java.html

In that program

char c = s.charAt(i);

complies fine. But if I replace that with

int d = s.chatAt(i);

char c = d;

the code refuses to compile, and I get a "possible loss of precision" error. Why? And how can I avoid possible loss of precision errors in general?

Thanks in advance. —Preceding unsigned comment added by 137.165.246.36 (talk) 20:08, 11 April 2009 (UTC)

: The "possible loss of precision" is because you are assigning an int (d) to a char, which stores less bits than an int. Thus if d had a value greater than 255 (or 65535 if a char in Java is wide), it would be "trimmed" to fit inside a char, producing the "loss of precision". --wj32 t/c 23:27, 11 April 2009 (UTC)

::Yes. This is called a [http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#5.1.3 narrowing conversion], and Java does not allow these implicitly. You need to explicitly specify the conversion using a [http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.16 "cast"] expression, such as

:::char c = (char)d;

::which is allowed. -- Tcncv (talk) 04:07, 12 April 2009 (UTC)