Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
urlify.js to support Serbian alphabet
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Janos Guljas  
View profile  
 More options May 7 2009, 3:49 pm
From: Janos Guljas <ja...@janos.in.rs>
Date: Thu, 7 May 2009 21:49:37 +0200
Local: Thurs, May 7 2009 3:49 pm
Subject: urlify.js to support Serbian alphabet

Hi,

Here is a patch for urilfy.js in admin application that should support
Serbian alphabet. There are no collisions between existing and new
mappings.

Is this OK with other language teams?

--
Janoš Guljaš <ja...@janos.in.rs>
WWW: http://www.janos.in.rs
GPG: public key ID 61D97459, http://www.janos.in.rs/janosguljas.asc

  urlify.js.1.diff
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Branko Vukelic  
View profile  
 More options May 7 2009, 3:54 pm
From: Branko Vukelic <bg.bra...@gmail.com>
Date: Thu, 7 May 2009 21:54:54 +0200
Local: Thurs, May 7 2009 3:54 pm
Subject: Re: urlify.js to support Serbian alphabet

On Thu, May 7, 2009 at 9:49 PM, Janos Guljas <ja...@janos.in.rs> wrote:
> Hi,

> Here is a patch for urilfy.js in admin application that should support
> Serbian alphabet. There are no collisions between existing and new
> mappings.

> Is this OK with other language teams?

We have mentioned this among ourselves in the Serbian translatiors
group, but since Janos hasn't mentioned it here, perhaps I could.

The reason Janos mentioned 'collision' between existing and new tables
is that Serbian transliteration pairs collide with the Russian pairs
(a small subset, if I'm not mistaken). Serbian transliteration is not
by sound as Russian is, so

in ru: ш --> sh
in sr: ш --> s

This is a minor problem that most people will overlook, and there
doesn't seem to be a reasonable solution to it. If someone thinks of
something that could solve this issue, please let us know.

Best regards,

--
Branko
--------------------------------------------------
To leave a quick note to Branko, use this page:
http://www.wallwisher.com/wall/foxbunny
--------------------------------------------------

eml: bg.bra...@gmail.com
alt: fox2bu...@yahoo.co.uk
blg1: http://sudologic.blogspot.com/
blg2: http://foxbunny.blogspot.com/
blg3: http://brankovukelic.blogspot.com/
img: http://picasaweb.google.com/bg.branko
twt: http://www.twitter.com/foxbunny/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Malcolm Tredinnick  
View profile  
 More options May 7 2009, 4:04 pm
From: Malcolm Tredinnick <malc...@pointy-stick.com>
Date: Thu, 07 May 2009 13:04:34 -0700
Local: Thurs, May 7 2009 4:04 pm
Subject: Re: urlify.js to support Serbian alphabet

Good to mention it, because that's the question I would normally ask in
this type of situation (although Janos explicitly ruled it out). Fact of
life is that there isn't going to be a perfect way to do that and we
shouldn't worry about that at all. The "slugify" process is imperfect.
It's also an approximation and there is no correct answer in any
language at all, since it intentionally throws away information. If
people want to use it, they are free to do so. If it isn't what they are
after, then the solution is not to use it.

For the record, the issue gets much more complicated when you consider
East Asian languages (Chinese, Japanese, Korean, etc). Our goal is
reasonable efforts and acknowledging that this is, by definition, an
approximate solution.

So I think this is fine. Having the full explanation on record is
useful, too. You know that at some point in the future somebody is going
to open a ticket saying that Serbian transliteration handles ш
incorrectly and, even when we point out why, will argue that it should
be the Russians who suffer. I think your current approach is as good as
we can do with that particular function (locale-specific functions are a
more specialised possibility, but they shouldn't be in core, at least
not until they've been proven externally first).

Regards,
Malcolm


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Branko Vukelic  
View profile  
 More options May 7 2009, 4:15 pm
From: Branko Vukelic <bg.bra...@gmail.com>
Date: Thu, 7 May 2009 22:15:32 +0200
Local: Thurs, May 7 2009 4:15 pm
Subject: Re: urlify.js to support Serbian alphabet
On Thu, May 7, 2009 at 10:04 PM, Malcolm Tredinnick

Yes, I understand. Janos and I agreed that we can always maintain a
fork separately, and that is just fine for the time being. Just
thought it wouldn't hurt to point the issue out in case a solution
emerges in the future.

--
Branko
--------------------------------------------------
To leave a quick note to Branko, use this page:
http://www.wallwisher.com/wall/foxbunny
--------------------------------------------------

eml: bg.bra...@gmail.com
alt: fox2bu...@yahoo.co.uk
blg1: http://sudologic.blogspot.com/
blg2: http://foxbunny.blogspot.com/
blg3: http://brankovukelic.blogspot.com/
img: http://picasaweb.google.com/bg.branko
twt: http://www.twitter.com/foxbunny/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Janos Guljas  
View profile  
 More options May 7 2009, 4:58 pm
From: Janos Guljas <ja...@janos.in.rs>
Date: Thu, 7 May 2009 22:58:10 +0200
Local: Thurs, May 7 2009 4:58 pm
Subject: Re: urlify.js to support Serbian alphabet
Maybe, we could write a page in documentation with explanation and
procedure how to include different urlify.js script in the admin app.
For example, trough admin.py, or direct from media folder.

There is an another solution. For easier modifications in the future,
we could reorganize character maps, not by language, but by script (as
in fonts: Arabic, Armenian, Balinese,...,Yi). And provide several sets
of mappings by type of transliteration. URLField could have an
optional argument for type of sluging. In other and uglier variant,
URLField would not be modified, but diferent JavaScript files had to
be added in admin.py. This way we could solve transliteration by look
and by sound, and different tipe of Eastern Asian Languages
transliterations.

--
Janoš Guljaš <ja...@janos.in.rs>
WWW: http://www.janos.in.rs
GPG: public key ID 61D97459, http://www.janos.in.rs/janosguljas.asc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Branko Vukelic  
View profile  
 More options May 7 2009, 5:05 pm
From: Branko Vukelic <bg.bra...@gmail.com>
Date: Thu, 7 May 2009 23:05:22 +0200
Local: Thurs, May 7 2009 5:05 pm
Subject: Re: urlify.js to support Serbian alphabet

On Thu, May 7, 2009 at 10:58 PM, Janos Guljas <ja...@janos.in.rs> wrote:

> Maybe, we could write a page in documentation with explanation and
> procedure how to include different urlify.js script in the admin app.
> For example, trough admin.py, or direct from media folder.

> There is an another solution. For easier modifications in the future,
> we could reorganize character maps, not by language, but by script (as
> in fonts: Arabic, Armenian, Balinese,...,Yi). And provide several sets
> of mappings by type of transliteration. URLField could have an
> optional argument for type of sluging. In other and uglier variant,
> URLField would not be modified, but diferent JavaScript files had to
> be added in admin.py. This way we could solve transliteration by look
> and by sound, and different tipe of Eastern Asian Languages
> transliterations.

I have a feeling these issues will eventually solve themselves once
Django gets its standard AJAX library. Meanwhile, there is definitely
no easy solution for this. You need at least one argument passed to
the function, that defaults to Null in which case the current set of
tables are used.

I don't know how this can be enabled without introducing
locale-related stuff into admin site's forms, which is not too clean a
solution. It's ok for slugify to accept such optional arguments, but I
don't think it's a good idea for JS.

--
Branko
--------------------------------------------------
To leave a quick note to Branko, use this page:
http://www.wallwisher.com/wall/foxbunny
--------------------------------------------------

eml: bg.bra...@gmail.com
alt: fox2bu...@yahoo.co.uk
blg1: http://sudologic.blogspot.com/
blg2: http://foxbunny.blogspot.com/
blg3: http://brankovukelic.blogspot.com/
img: http://picasaweb.google.com/bg.branko
twt: http://www.twitter.com/foxbunny/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »