(keitai-l) Re: Half-width text and buttons?

From: Kyle Barrow <kyle_at_pukupi.com>
Date: 05/21/03
Message-Id: <62FC400F-8B34-11D7-810F-000393D405B2@pukupi.com>
>
> <!DOCTYPE "-//W3C//DTD Compact HTML 1.0 Draft//EN">
> <html>
> 	<head>
> 		<meta http-equiv=3D"Content-Type" content=3D"text/html;
> charset=3Dshift_jis">
> 		<title>login</title>
> 	</head>
> 	<body>
> 		<form method=3D"get" action=3D"Login.aspx">
> 			Username:<br>
> 			&#59106;<input istyle=3D"3" type=3Dtext
> name=3DUsername value=3D"@some.com" accesskey=3D"1"/><br>
> 			Password:<br>
> 			&#59107;<input istyle=3D"3" type=3Dtext
> name=3DPassword value=3D"" accesskey=3D"2"/><br>
> 			<input type=3D"submit" name=3D"login" value=3D"Login">
> 		</form>
> 	</body>
> </html>
>
>

Jonathan,

There are some problems with the source here. I have (very quickly) 
modified this and put up a sample at http://pukupi.com/test.html

The revised code is as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
         "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; 
charset=shift_jis" />
		<title>login</title>
	</head>
	<body>
		<form method="get" action="Login.aspx">
			Username:<br />
			&#63879;<input istyle="3" type="text"
name="Username" value="@some.com" accesskey="1" /><br />
			Password:<br />
			&#63880;<input istyle="3" type="text"
name="Password" value="" accesskey="2" /><br />
			<input type="submit" name="login" value="Login" />
		</form>
	</body>
</html>

This works on i-mode phones and my i-mimic emulator 
(http://www.x-9.com/mimic/)

Points to note:
1. Use the XHTML Basic doctype for compatibility with the non-i-mode 
but XHTML capable phones - there are more and more of these out there. 
If you want to go strictly i-mode, use the HTML 3.2 doctype. Compact 
HTML is not an i-mode doctype.
2. Quoting all tag attributes is always a good idea and a requirement 
of XHTML Basic.
3. Close single tags with a space for backwards compatibility when 
using XHTML Basic.
4. The emoji used for 1 and 2 key symbols (&#59106; and &#59107;) are 
for Western encoding. Japanese and Western emoji do not use the same 
character set positions so European emoji will not display correctly on 
Japanese phones and vice versa. i-mimic will let you off on this one as 
it was quick fix to support my European colleagues. The next version of 
i-mimic will not. Emoji will also not work with non-i-mode phones so 
should be avoided if targeting the widest possible audience.

>
> UPDATE: just tested the emulator (the ntt docomo 6.0 one) on another
> machine and it does render ok on that one.

Never heard of this one. Do you have a link?

Cheers

Kyle


-- 

http://pukupi.com
Received on Wed May 21 05:34:30 2003