<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=ProgId content=Word.Document>
<META name=Generator content="Microsoft Word 15">
<META name=Originator content="Microsoft Word 15"><LINK rel=File-List
href="wlmailhtml:{CF98676C-AA29-41C6-A2CE-C6B67FF2E5CB}mid://00000120/!cid:filelist.xml@01D06193.A4D825A0">
<STYLE><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-charset:1;
        mso-generic-font-family:roman;
        mso-font-format:other;
        mso-font-pitch:variable;
        mso-font-signature:0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-536870145 1073786111 1 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        mso-fareast-font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-noshow:yes;
        mso-style-priority:99;
        color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-noshow:yes;
        mso-style-priority:99;
        color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-style-unhide:no;
        mso-ansi-font-size:11.0pt;
        mso-bidi-font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ascii-font-family:Calibri;
        mso-fareast-font-family:Calibri;
        mso-hansi-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";
        color:#1F497D;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-family:"Calibri",sans-serif;
        mso-ascii-font-family:Calibri;
        mso-fareast-font-family:Calibri;
        mso-hansi-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.WordSection1
        {page:WordSection1;}
--></STYLE>
</HEAD>
<BODY lang=EN-GB style="tab-interval: 36.0pt" dir=ltr link=blue vLink=purple>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>I am checking, if names only include ? and delete it with this rule</DIV>
<DIV> </DIV>
<DIV>name~'^(?=\s*\?)[?\s]+$'
{ delete name }</DIV>
<DIV> </DIV>
<DIV>Maybe it’s helpfull even if you are looking for a different solution.</DIV>
<DIV> </DIV>
<DIV>Walter</DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=mike@tvage.co.uk
href="mailto:mike@tvage.co.uk">Mike Baggaley</A> </DIV>
<DIV><B>Sent:</B> Wednesday, March 18, 2015 4:53 PM</DIV>
<DIV><B>To:</B> <A title=daveswarthout@gmail.com
href="mailto:daveswarthout@gmail.com">daveswarthout@gmail.com</A> ; <A
title=mkgmap-dev@lists.mkgmap.org.uk
href="mailto:mkgmap-dev@lists.mkgmap.org.uk">'Development list for mkgmap'</A>
</DIV>
<DIV><B>Subject:</B> Re: [mkgmap-dev] Testing for a literal question
mark</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'>Hi
Dave, I have a rule based on the following that includes a test for a question
mark, and it seems to work fine:<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'><o:p></o:p></SPAN> </P>
<P class=MsoNormal style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none"><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Courier New"; mso-fareast-language: en-us; mso-no-proof: yes'>alt_name~'.*[!"$%\^&*_+=\[\]{}:;@~#<>,?/|\\].*'
{echotags "Road with invalid character in alt_name"; delete
alt_name}<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'><o:p></o:p></SPAN> </P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'>So
I expect you should be able to put ~’.*[?].*’ as the test if the question mark
is not accepted outside the square brackets.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'><o:p></o:p></SPAN> </P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'>Regards,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'>Mike<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; COLOR: #1f497d; mso-bidi-font-family: "Times New Roman"; mso-fareast-language: en-us'><o:p></o:p></SPAN> </P>
<P class=MsoNormal><B><SPAN lang=EN-US
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; mso-fareast-font-family: "Times New Roman"; mso-ansi-language: en-us'>From:</SPAN></B><SPAN
lang=EN-US
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri",sans-serif; mso-fareast-font-family: "Times New Roman"; mso-ansi-language: en-us'>
Dave Swarthout [mailto:daveswarthout@gmail.com] <BR><B>Sent:</B> 18 March 2015
14:28<BR><B>To:</B> Development list for mkgmap<BR><B>Subject:</B> [mkgmap-dev]
Testing for a literal question mark<o:p></o:p></SPAN></P>
<P class=MsoNormal><o:p></o:p> </P>
<DIV>
<P class=MsoNormal>How would I write a regex style rule that fires when it
encounters a question mark in a name?<o:p></o:p></P>
<DIV>
<P class=MsoNormal><o:p></o:p> </P></DIV>
<DIV>
<P class=MsoNormal>There is a group of local mappers that have used an invented
name of "Ban ?" for towns they do not know the name of. I want to set the name
to something more meaningful but I can't seem to discover a way to escape the ?
without crashing mkgmap.<BR style="mso-special-character: line-break"
clear=all><o:p></o:p></P>
<DIV>
<P class=MsoNormal><o:p></o:p> </P></DIV>
<P class=MsoNormal>-- <o:p></o:p></P>
<DIV>
<DIV>
<P class=MsoNormal>Dave Swarthout<BR>Homer, Alaska<BR>Chiang Mai,
Thailand<BR>Travel Blog at <A href="http://dswarthout.blogspot.com"
target=_blank>http://dswarthout.blogspot.com</A><o:p></o:p></P></DIV></DIV></DIV></DIV></DIV>
<P>
<HR>
_______________________________________________<BR>mkgmap-dev mailing
list<BR>mkgmap-dev@lists.mkgmap.org.uk<BR>http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</DIV></DIV></DIV></BODY></HTML>