Grep and quotation marks

Hi, I have put together a grep style that will change any western characters in a Chinese document to a different font. I am having a problem with changing quotation marks around western characters without changing the ones around Chinese text as well. Is there any way to change only quotation marks that are around western characters?
Kate

Sure! It's perfectly possible to scan for anything but Chinese. What exactly do you have now? If you are using something like
".+"
you could change it to
"([\x{0003}-\x{2fff}]+"
(the main bulk of Chinese starts at Unicode u+3000). This will include the text "within". An alternative way, excluding anything but the quote marks themselves, is to use lookbehind and lookahead:
(?<![\x{2fff}-\x{faff}])[~{~}](?![\x{2fff}-\x{faff}])
This may look daunting, but it consist of three fairly easy parts:
(?<! [ \x{2fff}-\x{faff} ] )  Match behind for not anything in the Chinese range
[ ~{ ~} ]   Match either opening or closing double quote (this doesn't seem to work with the " any dbl quote wildcard...)
(?! [ \x{2fff}-\x{faff} ] )   Match in front for not anything in the Chinese range again.

Similar Messages

  • How to execute "netsh wlan connect SSID", but SSID has space and quotation marks?

    Dear all:
    I have a wifi roruter with SSID test "3"
    But when I execute following command netsh wlan connect "test \"3\""
    the netsh reply: 未將設定檔 "test " 指派給指定的介面。
    Sorry my windows7 is chinese version, but as you can see, netsh detect my SSID as
    test, not test "3".
    Does everybody know how to use netsh to connect to a SSID, and these SSID has space and quotation mark both?
    Regards,
    Joseph

    Hi Joseph,
    Firstly, please modify your SSID name to make sure it do not contain spaces or special characters. SSID name is the router setting. please go there to change SSID name.
    In addition, If only one SSID is specified in the profile, then the specified SSID is used to connect, and the ssid parameter is not required. If the profile specifies multiple SSIDs, the ssid parameter is required.
    Therefore, I would like to suggest you run command as this syntax:
    netsh wlan conncet ssid=Your SSID of the unsecured wireless network name=Your current profile name
    To do this, please refer to the section “connect” in the following document:
    Netsh Commands for Wireless Local Area Network (WLAN) Preliminary
    http://technet.microsoft.com/en-us/library/cc755301.aspx#bkmk_wlanConn
    Karen Hu
    TechNet Community Support

  • Apstrophes and quotation marks

    I have a text containing dialogue with a large number of word-initial apostrophes to indicate dropped h's (e.g. I 'ope, 'e 'as, etc). Because it's dialogue, there are also a large number of quotation marks and I want to use typographer's quotes. Is there a way of doing this without InDesign (CS5) automatically converting the apostrophes to opening single quotes.
    Thanks for any advice,
    Piers

    Thanks Jongware and Peter. Used the Grep solution to do the bulk of it and then went through the text and manually changed back any opening quotes that had been incorrectly converted to apostrophes. The text was imported from a Word document. I feel the need for some kind of 'hard' apostrophe that never gets changed by smart quotes!
    Thanks again for your help,
    Piers

  • Question Mark and Quotation Marks Stopped Working

    Hi, I was working away and then my computer just up and restarted. I then relaunched my application now I notice my quotation marks, and question marks dont work in any application, but they are replaced by these letters: Double Quotation is: È, Single Quotation is: è and Question mark is: É.
    I opened my System Preferences and reset the keyboard to default and the quotations and question marks still dont work. I know I have had memory problems but what can I do to fix this.
    Thanks

    Paint Guy,
    What keyboards do you have selected in System Preferences>International>Keyboards? Make sure that US is at the top of the list and uncheck any unwanted keyboard inputs. It sounds as if you might have Canadian input selected.
    littleshoulders

  • Typographically correct apostrophes and quotation marks? Bug?

    I am using the trial of Pages '08 (3.0) on a German Mac OS-X 10.4.10. Typographic quotation marks are switched on.
    Apostrophe:
    Whenever I type a phrase in English with an apostrophe, for instance the word "Let's" it uses a left single quotation mark (‘) instead of the right single quotation mark.
    Quotation marks and languages:
    Likewise, with typographic quotation marks set in the program settings, Pages uses the German quotation marks (which look like this: „word‟) although the text language is set to English. This behaviour occurs with English and English, GB. In Word this behaviour changes with the text language setting.
    I am a recent switcher, so maybe a solution to this problem is already known. If not, should I report this as a bug via feedback?

    Ian, yes, that would be Smart Quotes in English.
    You not being able to get German quotation marks in English would seem to be the same problem. I guess this is a bug then (or a missing feature) as I would expect this to change with each language (e.g. French has guillemots etc.).
    Would perhaps having several keyboard input setup in OS-X help here?
    Thanks for the link to Tom Gewecke's page. Tom, I'd be interested to hear of any other good recommendations. Are NeoOffice/OpenOffice good in this respect? Word compatibility and the ability to track changes is a must for me (as client's work with Office), but I'd rather invest in Microsoft Office when the new Universal version becomes available? I like the more simplified interface of Pages, which is why I'm trying the new version out via the trial.

  • SUBSTITUTE Function and Quotation Marks

    How do you substitute another character for a quotation mark in a string using the SUBSTITUTE function? I want to change a string such as 12"x12"x2" to read 12x12x2. I have read the User Guide and the Formulas and Functions User Guide, but I cannot find a way to 'escape' the quotation mark so that it is interpreted literally. I tried the tilde, but that did not work either; and smart quotes is turned off. My UNIX skills are rusty. Is this possible in Numbers '09?

    Thank you very much! I had tried 3 quotes, but did not think to try 4 quotes; nor did I think of Googling an Excel solution. The logic of why this works escapes me, but it DOES work and I will have to remember this tip as well as how you found the solution. Again, thank you for providing a solution.

  • Builder and quotation marks

    Since we don't need the quotation marks, why does the builder build using them????
    I'm trying to write the source by hand, and I use the builder to learn from.
    But any source that's been generated has all that excess stuff in it, so I have to go in and edit it out.
    Is there a toggle to turn that off?
    Marion

    This is primarily in support of object names using non-ascii characters. I believe table names can only contain A-Z 0-9 _ without using quotes around them. So, if you were French and wanted to create an employees table:
    CREATE TABLE EMPLOYÉS(ID NUMBER);
    CREATE TABLE EMPLOYÉS(ID NUMBER)
    ERROR at line 1:
    ORA-00911: invalid characterWith quotes:
    CREATE TABLE "EMPLOYÉS"(ID NUMBER);
    Table created.Since APEX is supported 9 languages in addition to English, they have to expect they will encounter this issue when querying these tables as well. So, to be safe everything is enclosed in quotes. Quotes also support mixed case object names, but that is terrible, terrible path to go down. If anyone reading this that uses Oracle in another language cares to chime-in and correct / supplement my response, feel free.
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://www.amazon.com/gp/product/0071613706?ie=UTF8&tag=tylsblo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0071613706]

  • When I write in hebrew from right to left the periods/quotation marks/question marks at end of sentences jump to the beginning of the sentence. help

    I cannot seem to format a message correctly when I write in hebrew from right to left
    even if I press left margin and the message starts from the left side, all question marks, and end of sentences (periods, etc) jump to the front of the sentence and quotation marks or separation marks (such as dashes) split up the lines and jump words to the front of the sentence.
    how can I change the formatting to solve this so the recipient receives a properly formatted email?

    are you using in bidi add-on?
    https://addons.mozilla.org/en-US/thunderbird/addon/bidi-mail-ui/

  • Apostrophes, quotation marks, dashes causing problems in emails

    MacBook Pro
    OS: 10.4.7
    Program: Mail
    Since upgrading to an Intel MacBook Pro (10.4.7), my outbound email has been turning into a weird jumble of glyphs.
    For some recipients, my apostrophes and quotation marks turn into a serious of four glyphs...for other recipients, all the dashes and em dashes disappear...for yet other recipients, all the punctuation completely vaporizes.
    I’m emailing to an extremely broad set of recipients, as they are my customers from all over the country. No single ISP is in common, no particular browser, etc. The only reason I even know about this is because I’m able to see the catastrophe in my original text included in their responses. Doesn’t matter whether I’m sending from home (with our cable company ISP) or from work (an entirely different cable company ISP)...same mess either way.
    Our outbound messages are nearly incomprehensible to read—any suggestions?
    MacBook Pro, G4 PowerBook, G4 tower   Mac OS X (10.4.7)  

    The only reason I even know about this is
    because I’m able to see the catastrophe in my
    original text included in their responses.
    That doesn't necessarily mean that your outbound mail is appearing strange to the reader. I would advise you to check that and verify that you really have a problem.
    If your readers do see strange characters, it is often because you are sending rich text (which is really html mail) and they are using MS Outlook. Some possible fixes are in this note:
    http://homepage.mac.com/thgewecke/woutlook.html
    PS Getting rid of all smart punctuation (curly quotes and apostrophe's, special dashes) may also be helpful.

  • Question marks appear in my browsers now, used as quotation marks...

    Lately all sorts of question marks are appearing in certian parts of my browsers, I think that somehow a font is corrupted or something... it appears they are there appostrophies and quotations marks should be; this is very annoying. How can I fix this? As far as I know, I havent done anything with my fonts or to my system.
    Thanks
    Michael

    It would help a great deal if you would provide an example url of a site where you have this problem.
    Normally seeing ? instead of punctuation is caused by an encoding mismatch between the browser and the page being viewed, resulting from errors by the page author. You can often fix it by going to View > Text Encoding and manually setting your browser to Western (ISO Latin 1).

  • Adding a Kerning amount to the space between a digit and a quotation mark in GREP

    Hello,
    For some reason I am having a problem adding a Kerning amount between a digit and the Quotation mark in GREP.. Here is what I have :
    (?<=\d)\x{0022}
    I think the problem, is the character style lets me add a tracking amount, but not specify a kerning amount and that is what I really need. I just need a 150 Kern between the digit (sometimes a whole number or a fraction and the double quotation mark.
    Anyone out there know a good way to do this?
    thanks
    babs

    Almost right.
    No, you cannot set kerning in a character style (easily -- I think there was a trick to work around it, but I cannot recall what it was). Yep, you must apply tracking with the GREP style to part of the string. If you set the tracking for both characters, it will also be applied to the second one, making this wider as well.
    Set your GREP to this to prevent it:
    \d(?=~")
    (where the code ~" is equal to 'straight double quotes only').

  • Getting Quotation Marks to look like they were mirrored. In GREP or Regular find and change

    Hello,
    Is there anyway to make quotation marks come out like this image below.
    Right now I have 2 text boxes to make it work, as I cannot get the first double quote to look like a mirrored version of the right double quote ;-(
    This is what it needs to look like.
    Thanks,
    Babs

    Peter wrote:
    When you copy someone else's copy of Sgt. Pepper you deprive the distibutor of his profit on the legitimate sale and you deprive Mssrs Mc Cartney and Starr of their rightful royalties, which may be piddling, but every little bit counts.
    Little bits do not count for as much as great big bits, and it is rule-worship to assume that they do. There is no proportionality in grouping very different sorts of violation together as if they were all in the same league of criminality. Picking up a dime someone has dropped in the street is completely different from breaking into someone's house and stealing a large quantity of money.
    You'd have a fit if you found out I was using a logo you designed, without permission, and was making money from publishing it. Suppose I hacked into your system and copied your last completed job and handed it to your client before you could deliver and bill them? Would you be upset if they went ahead and used your work and didn't bother to pay you because, after all, there was no 'property' involved and they have what they need without cost?
    Yes, I would regard that as a serious legal offense, and would follow it up with the full rigors of the law. But it is not "theft" in the proper sense of the word, in my opinion, because an idea (design, logo, etc.) is a type rather than a physical token. Its authorship must be protected, its origination acknowledged, monetarily rewarded, and all that, but the idea that it has an "owner" is the product of philosophical and logical confusion.
    Human tend to over-extend the concept of ownership to all sorts of things that cannot legitimately be owned, such as other people. Even nowadays, following the abolition of slavery, many people consider themselves the owners of their spouses, children, employees, pets, etc..
    Message was edited by: Jeremy bowmangraphics
    PS: Forgot to add that I have paid for Sgt. Pepper four times already -- in mono vinyl, stereo vinyl, tape cassette, and CD. Don't you think it's time we all deserved an "upgrade"?

  • Script or GREP search line for missing quotation marks (opening or closing)

    Hi there,
    I've being trying to figure out a GREP search that will help me find quotations that haven't been opened or closed properly. Does anyone know if there exists a script that will mark/help me find the quotation marks that incorrectly stand alone? A GREP search line would be fine too.
    Following is an example - just to make sure I made myself clear:
    'why is the closing quotation mark missing after the question mark? I asked.
    'I don't know, this line seems to be fine, with opening and closing quotation mark,' I answered.
    Although this line is missing an opening quotation mark.'
    Hope somebody can help me, I'm pretty sure I'm not the first person searching for a solution on this issue - sorry, I'm not to bright with scripting or GREP.
    Thnx.
    Gijs

    As you say, it's not waterproof, but it is really helpfull, thanks. The unclosed quotation are easy to find this way.
    In Dutch we mainly use single quotation marks (double quotation marks are only used for quotations within quotations). This brings an extra dimension to the issue, since the apostrophe and single quotation mark are the same character. So a phrase like ' I'm having problems finding unopened quotations' with your GREP suggestion will mark the apostrophe in I'm as the closing quotation mark.
    So what I'll do is:
    1. find unclosed quotations ‘[^’]+?‘ and mark them with a character style WARNING;
    2. GREP search ’[^‘]+?’ two following closing quotation marks and make them C=100;
    3. GREP search ’[^‘’]+?’ the correct quotations and mark it all K=100;
    4. Do a regular search for '^$ any apostrophe/quotation mark followed by a letter and mark them all K=100;
    5. Do a regular search for any closing quotation mark left in C=100 and manually WARNING-mark the ones that need to be looked at by the editor.
    Step 4 is a bit tricky since any error like 'I agree,'he said (no space after quotation mark) will be marked back to K=100 as well, but those errors I'll probably notice since they're underlined by the grammar control option.
    Thanks again for the help.

  • Vertical line and missing quotation marks

    I am a new user to FlashPaper. When I created by PDF from
    Microsoft Word, a black vertical line appeared and my quotation
    marks disappeared. What happened? What am I doing wrong?

    As you say, it's not waterproof, but it is really helpfull, thanks. The unclosed quotation are easy to find this way.
    In Dutch we mainly use single quotation marks (double quotation marks are only used for quotations within quotations). This brings an extra dimension to the issue, since the apostrophe and single quotation mark are the same character. So a phrase like ' I'm having problems finding unopened quotations' with your GREP suggestion will mark the apostrophe in I'm as the closing quotation mark.
    So what I'll do is:
    1. find unclosed quotations ‘[^’]+?‘ and mark them with a character style WARNING;
    2. GREP search ’[^‘]+?’ two following closing quotation marks and make them C=100;
    3. GREP search ’[^‘’]+?’ the correct quotations and mark it all K=100;
    4. Do a regular search for '^$ any apostrophe/quotation mark followed by a letter and mark them all K=100;
    5. Do a regular search for any closing quotation mark left in C=100 and manually WARNING-mark the ones that need to be looked at by the editor.
    Step 4 is a bit tricky since any error like 'I agree,'he said (no space after quotation mark) will be marked back to K=100 as well, but those errors I'll probably notice since they're underlined by the grammar control option.
    Thanks again for the help.

  • How to mark product mandatory in SAP CRM Opprotunity and Quotation?

    Hello All,
    We are using SAP CRM 4.0 and have one requirement as follows:
    Through Configuration ,I am not able to find the the way to mark mandatory for the fields Product , Description,Quantity,Exp.total Value under the Products Tab for the Opportunity. Also the field product under products Tab for the Quotation.
    Can this be done through Config or Technically?  please provide the steps for the needful and also advise do i need to put this at header or item level?
    Thanks in advance.
    Cheers
    Sreedhar

    Hi, Sreedhar
    You have to write program for Badi ORDER_SAVE or use incompleteness check.
    How to maintain the fields mandatory in Opportunity and quotation SAP CRM?
    making activity reason as incompleteness field
    Denis.

Maybe you are looking for

  • Standby mode problem - iPhone 4S

    I have an iPhone 4S, 16GB, firmware 5.0.1. When I click on the stanby button, and the iphone goes to standby mode, sometimes happens that when I click the stanby button againt it doesn't works and is blocked with black screen. The phone fails to resu

  • How can I change the home computer to sync an iphone 3?

    How can I change the home home computer to sync an iphone 3?

  • Export Web Application [EXPORT] Command in WAD

    HI Gurus, Here is a strange problem. I would like a real solution because I've read just about any documentation there is out there. So, thanks for thoughtful answers in advance. We created a custom template ZZANALYSIS_PATTERN off of SAP delivered st

  • File Move and Rename Workflow and/or Script

    This seems to be a simple workflow to create, but it isn't working for me. I want a workflow and/or script that will move screenshots from my desktop and place them into a folder. Secondly, I want these images to be renamed from "Picture #" to "Scree

  • Can I restore the deleted statistical data from the database tables?

    Hi all,    I have deleted the statistical data from the database tables like(Ex: RSDDSTAT, RSDDSTATWHM,..) by mistake through RSA1> Tools> BW Statistics for Infoproviders--> Delete. Is there any way to restore the deleted data back? Thanks in advance