Re: Re: Question to Slovak Wikipedia SW
Brion Vibber <[email protected]> Tue, 24 Feb 2004 17:33:23 -0800
| Newsgroups | gmane.science.linguistics.wikipedia.international |
|---|---|
| Message-ID | <[email protected]> |
--===============64311696993964795== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-3-581355670" Content-Transfer-Encoding: 7bit --Apple-Mail-3-581355670 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed > "Stanislav Valasek" <[email protected]> schrieb: > > during a translation of LanguageSk.php we found out a variable: > > "linktrail"=A0=A0=A0 =A0=A0=A0 =3D> "/^([a-z]+)(.*)$/sD" [snip] On Feb 25, 2004, at 01:22, Andre Engels wrote: > On nl: I have for example changed this to=20 > "/^([=E4=F6=FC=EF=EB=E9=E8=E0a-z]+)(.*)$/sD", so that > =E4=F6=FC=EF=EB=E9=E8=E0 are also all seen as letters for this = purpose. Note that for the wikis using UTF-8 encoding, one non-ASCII character=20 is composed of more than one byte, and the regexp matching currently=20 works on bytes. So you'd have to make it something like this: > "/^((?:=E4|=F6|=FC|=EF|=EB|=E9|=E8|=E0|[a-z])+)(.*)$/sD" The [] bits match single characters (really bytes), and (||) matches=20 longer sequences. The ?: is to avoid messing up the returned match=20 sequence. Yuck! Sorry, it's one of those ugly implementation details=20 that we shouldn't have to expose... -- brion vibber (brion @ pobox.com)= --Apple-Mail-3-581355670 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (Darwin) iD8DBQFAO/tmwRnhpk1wk44RAn3TAKCc/Eajj/be2tEXgZ+kUxo8kFhpCQCfW83q VQkmCj0OXmfo2Bol6A8I/+E= =FK0l -----END PGP SIGNATURE----- --Apple-Mail-3-581355670-- --===============64311696993964795== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intlwiki-l mailing list [email protected] http://mail.wikipedia.org/mailman/listinfo/intlwiki-l --===============64311696993964795==--