[Xapian-tickets] [Xapian] #550: Omega script enhancement: $prettyurl

Xapian nobody at xapian.org
Tue Jun 10 01:41:31 BST 2014


#550: Omega script enhancement: $prettyurl
-------------------------+-----------------------------
 Reporter:  catkin       |             Owner:  olly
     Type:  enhancement  |            Status:  assigned
 Priority:  normal       |         Milestone:  1.3.x
Component:  Omega        |           Version:
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+-----------------------------
\
\
\
\
\
\

Comment (by olly):

 As reported in #644, the biggest issue currently is for filenames with
 non-ASCII characters.  If we either document that the output if UTF-8, or
 provide a way to tell omegascript that, then {{{$prettyurl}}} could check
 that that top bit set characters match that encoding and if they do (which
 they generally will) output them as the byte values.  That will look nice
 and should generally cut and paste correctly (though we should check that
 with a few different browsers).

 Of the other characters:

  * < 0x20 and 0x7F are control characters and won't display nicely
 unencoded anyway.
  * {{{/}}} can't appear in a filename except as a directory separator, so
 isn't relevant.
  * {{{?}}} and {{{#}}} are definitely not safe.
  * {{{%}}} we have to leave escaped if it is followed by a hex digit, but
 we might be able unescape in other cases (this seems to work in firefox,
 not tried other browsers).
  * {{{:[]@!$&'()*+,;=}}} seem to work OK unencoded in firefox at least.
\
\
\

--
Ticket URL: <http://trac.xapian.org/ticket/550#comment:6>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list