Transpose two Hebrew words with nikud

Hello

I have a Hebrew paragraph with two words that have to be transposed:

AAAAA {bath}-> aaaaa {bath} ccccc ccccc

Without diacritics/nikud signs a simple grep in a script works just fine:

(\w+) ( )(\{)(\w+)(\})    ->   $3$4$5 $1

HOWEVER

If there is nikud in Hebrew \w+ does not detect the words...

I tried to use \X+ instead of \w+, but that still does not detect the closing} and continues until the NEXT occurrence

Is there a way to do this in a script?

Thank you

You need to escape the escapes when you put in the code

var doc = app.activeDocument;
app.findGrepPreferences = NothingEnum.NOTHING;
app.changeGrepPreferences = NothingEnum.NOTHING;
app.findGrepPreferences.findWhat="([\\x{0590}-\\x{0600}]+) \\{([\\x{0590}-\\x{0600}]+)\\} ([\\x{0590}-\\x{0600}]+)";
app.changeGrepPreferences.changeTo="$1 $3 {$2}";
var x=doc.changeGrep();
alert(x.length+" changed");

Use the same principle for the second grep. (I left it for you to practice)

I don't know why you're bracketing of space and the braces instead of just using the simple replacement, as I do.

Concerning

Trevor

Tags: InDesign

Similar Questions

  • Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Hello

    2796614 wrote:

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Of course, it is possible.  According to what the text file looks like to, you can create an external table that treats the text file as if it were a table.  Otherwise, you can always read the file in PL/SQL, using the utl_file package and INSERT of PL/SQL commands.

    You have problems whatever you wantt?  If so, your zip code and explain what the problem is.

    Whenever you have any questions, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the exact results you want from these data, so that people who want to help you can recreate the problem and test their ideas.  In this case, also post a small sample of the text involved file.

    If you ask about a DML operation, such as INSERT, then INSERT statements, you post should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • "Words with friends" app stopped working, on, my, Pad, mini

    My words with friends application has stopped working. The icon remains, but when I click on it nothing appears on the screen.

    Did turn something off by mistake?

    Start simple with a reset. Press and hold the home and power buttons until the Apple logo appears. Release the two buttons. Wait for your iPad to begin on its own.

    Words with friends did stop working after an update, IOS 9.3.3 or an update of game? If yes contact words with friends to see if the update is incompatible and needs fixing.

  • Error "Unable to establish two-way communication with the device" Windows 8 with c309g

    Operating system: windows 8, 64 - bit

    computer: desktop

    Home network: network, the computer is on a wired connection, printer is on a wireless connection

    error message: "the computer is unable to establish two-way communication with the device.

    • When you install first of all my husband's new computer, we were able to install the software and connect the printer very well, and the printed test page.
    • A few days later, I installed the HP ePrint app on my iPad, found our printer and tried to print a page of a Web site. Printing failed, and the iPad app gave a message something like "the Word document may be printed." I cancelled again tried the iPad app, print work, and has not yet. I had not heard of AirPrint, so I did that on my iPad.
    • We tried to print the page of the computer instead, but the task has failed.
    • We looked at the parameters of the printer through the computer of windows 8 and found that there are two differently named c309g printer now displayed in the printer list.
    • My husband uninstalled the printer software, the computer restarted and reinstalled and then got the "the computer is unable to establish two-way communication with the device.

    any ideas on what to do next?

    My brilliant husband fixed it. Power cycling the router.

  • IMessage Apple Watch has two interviews separated with the same person?

    My new Apple Watch has a problem with iMessage and I know how to fix this on my iPhone but not watch?

    On my iPhone, that my ID apple is connected to more than 10 devices and sometimes when a new device is added, it adds the addresses on my apple for iMessage and FaceTime ID and I always fix by unchecking the addresses that I don't want in the application settings under "Messages" and "FaceTime." However, this isn't the same thing to watch because there is no option in the settings on the Apple Watch and the watch App on my iPhone.

    I would like to help please?

    Hello

    Apple Watch uses the same parameters (for how you can be reached and how new conversations are started) for Messages as your iPhone.

    If you have two interviews separated with the same person, the following steps may help:

    • On your iPhone, check if there is more than one contact form in Contacts of this person (if so, remove duplicates).
    • Delete old Messages conversations with this contact on each of your iPhone and watch:
      • iPhone: app Messages > swipe to the left on a message thread > delete.
      • View: Open the Messages app (from the home screen, which is accessible by pressing the digital Crown) > swipe to the left on a message thread > tap on Trash / delete.
    • On your iPhone in the app Watch: Watch My > general > reset > press reset sync data:
      • You won't see anything happen after pressing it (the process runs in the background, invisible to the user).
      • Leave a minute or two to allow the course ends.
    • Restart your iPhone and your watch (turn the two together off the coast, then restart your iPhone first):
  • I have 2 copies of open Firefox (two different windows with lots of tabs), if I reboot can I restore the two sessions?

    I have 2 copies of open Firefox (two different windows with lots of tabs), if I reboot can I restore the two sessions? I am familiar with clicking history / restoration of previous session, but do not want to reboot to let windows update to do it's thing unless I can restore the two sessions.

    guigs2 said

    If they run different profiles, then Yes.

    Thanks, but I use only 1 profile. However, I found the answer! If I restart/turn off / down pc WITHOUT closing a firefox session, he will come with the screen 'well, it's embarrassing"and list the TWO sessions to restore. The trick is not not to close before stopping! If you close them first, then you can only restore the session first (?).

  • Homepage opens with two additional tabs with quicklinks undesirable.

    Opening of my homepage now also open 2 two additional tabs with tile links to Facebook, Twitter and other undesirable websites. Maybe it's Yahoo, which I don't use. I might add the screenshot of these tabs, but need help to do it. It's a painting, *.png file. Homepage has no "pipes" | in the address.

    You can check the setting of the homepage:

    • Tools > Options > general > startup: Homepage

    Firefox supports several home pages separated by ' |' symbol (pipe).

    You can check the suspicious extensions or recently installed unknowns.

    Your list of details of the system shows that you have a user.js file in the profile folder to initialize prefs each time you start Firefox.

    The user.js file is present than if you or another software has created this file and normally it wouldn't be here.
    You can check its contents with a text editor (right click: open with) If you do not create this file yourself.

    The user.js file is read whenever Firefox is started and initializes the preferences to the specified value in this file, so the preferences set via user.js can be changed temporarily for the current session.

    You can remove possible user.js and numbered prefs-# .js files and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

  • "Words with Friends" Facebook tiles don't move no-computer MAC

    Computer MAC - OS X Version 10.9.4 - Firefox browser version 31.0

    I had this problem for several months.
    The tiles of letter in the words with friends in Facebook will not move.
    They move in other browsers (Safari, Chrome), but is no longer with Firefox. Other Facebook games works but I can't move the tiles in words with friends.

    Hey, it worked for me, but there was an odd note in the browser Console:

    An error occurred during a connection to wwf - fb.zyngawithfriends.com:443.

    SSL has received an unexpected Change Cipher Spec record.

    (Error code: ssl_error_rx_unexpected_change_cipher)

    12:00:46.295 OpenGL compositor initialized successfully.
    Version: 2.1 INTEL - 8.16.78
    Seller: Intel Inc.
    Rendering engine: Intel HD Graphics Engine OpenGL 4000
    FBO Texture target: TEXTURE_2D

    It reissued a certificate of zynga. I recommend either clear the cache of the site and include certificates and make sure all your plugins are up-to-date: Flash Plugin - maintain and troubleshoot

    Actually watching your addons, please also check questions Troubleshoot Firefox in Safe Mode to ensure that it is not not an add it affecting the script on the page for the game.

    Thank you!

  • Firefox insists on sign up for mobile & I have not mobile! I just want to play words with friends and it won't let me.

    I played the words with friends last night - no problem. This morning I get messages on my phone that Firefox will not support my browser and I need to upgrade - it always tells me to sign up for mobile Firefox for my Android - I don't HAVE AN ANDROID. MY CELL PHONE IS A FLIP OF THE DARK AGES, PHONE, AND I DON'T WANT TO PLAY GAMES ON IT.

    You are probably just seeing a message offering it for download, if you do not have an Android phone, you can safely ignore it. Do not update your Firefox on your computer but, you are using an older version. Update Firefox to the latest version

  • I can't stop the pop-up and adware ads in Safari. When I opened a new take, it is locked until I click a place twice, then two new tabs with advertising and virus detected by safari emerge

    I can't stop the pop-up and adware ads in Safari. When I opened a new take, it is locked until I click a place twice, then two new tabs with advertising and virus detected by safari emerge

    I tried following the instructions on the support page, in Apple, but it did not work.

    Force to leave Safari, then with the SHIFT key, restart Safari.

    Also use EtreCheck of www.etrecheck.com and see what else is running.

  • Install the words with friends on the Yoga 3 Pro

    Cannot install words with friends on my new Yoga 3 Pro (Windows 8.1). Installation requires Adobe Flash Player, but it is already installed. Have seen recommendations to uninstall Windows Update KB3004150 but this update is not present.

    Thank you. These steps did not help, but I found the problem. Your first post was relevant. I downloaded the "PC Apps Store" application. Wrong store! One is labeled "Store". I don't know why no relevant 'PC Apps Store' appears on the initial list of Apps for Windows 8.1 PC.

  • How to use two external monitors with my laptop?

    I have a new Pavilion dm4-301 d cl Entertainment PC.   My OS is Windows 7.   I'm used to using two external monitors with a docking station.   This new laptop lacks a docking station.  What should I do use two external monitors?

    Certainly not without a dock, but even with laptop HP well enough docks limit you to one of the ports on the external monitor, even if there are two on the dock. We used a device called an Atlona AT-HDPIX2 which is a USB to hdmi adapter. It provides a feature of third monitor for a laptop... use the native external port of the screen and the computer screen internal, then this device gives a third control that is fully configurable to display Windows 7 interface... clone, extend, etc.. It allows a full HD resolution and is pretty responsive for games even light.  HP does not have any true docking station for your laptop.

  • Reading a file MS Word with Tables

    I have experinced a mess when executing this labview program that reads in all tables in a MS Word file and does not see some tables.  The original Word document has hundreds of tables inside and it would be erratic jump a table in the order when he read and run convert text method.

    I reduced the thing down to a file simple word do the same thing.  This VI is not the second table in this document word with 2 tables.  The count property of tables calculated as 2 indicating that the word see 2 tables in the document, but when I try to convert to text the second table I get an indication of infamous error in MS Word and an empty string to the converttotext method.

    Someone knows how to fix?

    It's a delicate question. Here you change the document (with the help of convert to text), and at the end you do not save the changes.

    When you convert a table to text table is more exist and Word reallocate the array indices. In your example after the table 1 is converted to text index 1 is reassign in table 2. In the second iteration, you attempt to get the table with index 2 that no longer exist.

    You can change your code as follows to make it work: tables-> Count value of wire to the N of the loop, wire the constant '1' to the Index value of the item table.

    Ben64

  • two 'csrss.exe' with user 'system '.

    I have two 'csrss.exe' with the same username in the 'SYSTEM' One has 1728 k the another 6120 k of memory.  I have 2 computers; one is directly connected to the modem but not used.  The other computer is connected by wireless modem, and I am the only user of this computer.  My computer is infected?

    "System dedicated more resources to a specific task by generating multiple instances of a single process."

    http://www.ProcessLibrary.com/directory/files/Csrss/26031/

    -steve

  • Words with friends by zinga

    How to use words with friends on the hp touchpad. Instructions?

    Hello

    1. What is the operating system installed on your computer?

    I suggest you to contact the manufacturer of the game for assistance.

Maybe you are looking for

  • Satellite M110: The USB Modem broadband wireless fails to install

    Hi all I have a satellite M110 machine under XP SP3. I've tried two different brands of wireless USB modems. The two installation the corectly modem drivers and Device Manager shows this. However, pilots of Port of Coms do not install. The installati

  • smartphone with labview programming

    is it possible to run programs that I've written in labview on a smartphone? (iphone/android/new windows 8?) is it possible to program a smartphone with labview?

  • screen shakes intermittently

    Using Vista Home Premium 32 bit, today the screen went crazy and started shaking. Restarted the computer, shaking returned after a few minutes, then stopped. When he shakes, it is almost impossible to read any text. No idea who, subjects listed, it m

  • The object has in anticipation of m: n tasks of commissioning

    Synchronization log shows "the object (grp_name) (LDAPGroup) has been ignored during synchronization. "Reason: the object is in the expectation of m: n tasks of commissioning. In which tables are found these pending tasks? Thank you!

  • BlackBerry software apps in backup of archives .bbb

    Hi everyone... my friend download a game BBworld (six guns). and backup of im applications. IM try to rename the zip file and extract the file backup... and find a file and the folder .bbb = (.xml) and folder (Archives). in the XML file search and fi