Select text based on format (free form style text)

As suggested by Apple, I'm trying to create my first ePub using Pages as opposed to inDesign.
I only have a PDF as a source file and don't want to re-type all the text.
When I copy the text from the PDF and paste to Pages, the text comes in with the 'free form' style applied no matter what options I select during copy and paste.
In order to produce an ePub, I need to set styles for the text. This is quite tedious.
Is there any way to select text based on the way it is formatted when styles are not applied to the text?

Here is a script which may be useful if your problem surface again.
--{code}
--[SCRIPT words_attributes_to_Style]
Enregistrer le script en tant que Script : words_attributes_to_Style.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
Ouvrir un document Pages contenant des mots soulignés
Aller au menu Scripts , choisir Pages puis choisir “words_attributes_to_Style”
Le script appliquera :
le style "Souligné" aux mots soulignés
le style "Accentuation" aux mots en gras
le style "Italic" (si vous l'avez créé) aux mots en italique.
--=====
L’aide du Finder explique:
L’Utilitaire AppleScript permet d’activer le Menu des scripts :
Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case “Afficher le menu des scripts dans la barre de menus”.
Sous 10.6.x,
aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
--=====
Save the script as a Script: words_attributes_to_Style.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
Maybe you would have to create the folder Pages and even the folder Applications by yourself.
Select a Pages document embedding underlined words
Go to the Scripts Menu, choose Pages, then choose “words_attributes_to_Style”
The script will apply :
the named style "Underlined" to the underlined words
the named style "Emphasis" to bolded words
the named style "Italic" (assuming that you defined it) to italicized words.
--=====
The Finder’s Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the “Show Script Menu in menu bar” checkbox.
Under 10.6.x,
go to the General panel of AppleScript Editor’s Preferences dialog box
and check the “Show Script menu in menu bar” option.
--=====
Yvan KOENIG (VALLAURIS, France)
2011/11/13
2011/11/13 enhanced by Nigel Garvey in : http://macscripter.net/viewtopic.php?pid=145883#p145883
--=====
on run
          set Underlined_loc to my getLocalizedStyleName("Pages", "Blank.template", "STYLE_Underline")
          set Emphasis_loc to my getLocalizedStyleName("Pages", "Blank.template", "STYLE_Emphasis")
          tell application "Pages" to tell document 1
                    set character style of words whose underline type is single underline or underline type is double underline to character style Underlined_loc
                    set character style of words whose bold is true to character style Emphasis_loc
Assuming that you defined your own Italic style named "Italic", you may use : *)
                    try
                              set character style of words whose italic is true to character style "Italic"
                    end try
          end tell
end run
--=====
Example
set Heading8_loc to my getLocalizedStyleName("Pages", "STYLE_Heading 8")
Requires :
getLocalizedName()
on getLocalizedStyleName(theApp, tName, x)
  activate application theApp
          tell application "System Events"
                    (application file of application process theApp as text) & "Contents:Resources:Templates:" & tName & ":Contents:Resources:"
                    return my getLocalizedName(theApp, x, result)
          end tell
end getLocalizedStyleName
--=====
on getLocalizedName(a, x, f)
          tell application a to return localized string x from table "Localizable" in bundle file f
end getLocalizedName
--=====
List of default styles embedded in the Blank template :
"STYLE_Body" = "Corps";
"STYLE_Body Bullet" = "Puce du corps de texte";
"STYLE_Bullet" = "Puce";
"STYLE_Caption" = "Légende";
"STYLE_Emphasis" = "Accentuation";
"STYLE_Footnote Text" = "Texte de note de bas de page";
"STYLE_Free Form" = "Format libre";
"STYLE_Harvard" = "Harvard";
"STYLE_Header & Footer" = "En-tête et bas de page";
"STYLE_Heading 1" = "Sous-section 1";
"STYLE_Heading 2" = "Sous-section 2";
"STYLE_Heading 3" = "Sous-section 3";
"STYLE_Heading 4" = "Sous-section 4";
"STYLE_Heading 5" = "Sous-section 5";
"STYLE_Heading 6" = "Sous-section 6";
"STYLE_Heading 7" = "Sous-section 7";
"STYLE_Heading 8" = "Sous-section 8";
"STYLE_Heading 9" = "Sous-section 9";
"STYLE_Legal" = "Légal";
"STYLE_None" = "Aucun";
"STYLE_Normal" = "Normal";
"STYLE_Normal 22" = "Normal 22";
"STYLE_Normal 4" = "Normal 4";
"STYLE_Normal 8" = "Normal 8";
"STYLE_Numbered List" = "Liste numérotée";
"STYLE_Series_0" = "Series_0";
"STYLE_Series_1" = "Series_1";
"STYLE_Series_2" = "Series_2";
"STYLE_Series_3" = "Series_3";
"STYLE_Series_4" = "Series_4";
"STYLE_Series_5" = "Series_5";
"STYLE_Strikethrough" = "Barré";
"STYLE_TOC" = "Table des matières";
"STYLE_TOC Heading 1" = "Sous-section 1 de table des matières";
"STYLE_TOC Heading 2" = "Sous-section 2 de table des matières";
"STYLE_TOC Heading 3" = "Sous-section 3 de table des matières";
"STYLE_TOC Heading 4" = "Sous-section 4 de table des matières";
"STYLE_Title" = "Titre";
"STYLE_Underline" = "Souligné";
"STYLE_[Null]" = "[Nul]";
You may use more sophisticated custom styles embedding several properties:
baseline shift (real) : Raise or lower the target text.
bold (boolean) : Whether the font style is bold.
capitalization type (all caps/normal capitalization/small caps) : Whether a capitalization style is applied.
character background color (color) : The color of the character's background.
color (color) : The color of the font.
font name (text) : The name of the font.
font size (real) : The size of the font.
italic (boolean) : Whether the font style is italic.
ligatures (all ligatures/default ligatures/none) : Remove ligatures from the target text if the document is set to use ligatures.
name (text) : The name of the style.
outline (boolean) : Whether the font style is outline.
shadow (boolean) : Whether the text box content casts a shadow or not.
shadow angle (real) : The directional angle, in degrees, that the shadow is cast.
shadow blur (integer) : The relative amount of blur of images seen through the shadow.
shadow color (color) : The color of the shadow.
shadow offset (real) : The offset from the text box content that the shadow extends to.
shadow opacity (real) : The amount of opacity for the shadow, in percent.
strikethrough color (color) : The color of the strikethrough line(s).
strikethrough type (double strikethrough/none/single strikethrough) : Whether one or more lines are drawn through the characters.
subscript (boolean) : Decrease the font size and lower the baseline of the text.
superscript (boolean) : Decrease the font size and raise the baseline of the text.
tracking (real) : The space between text characters, in percent.
underline color (color) : The color of the underline(s).
underline type (double underline/none/single underline) : Whether the font style is underline.
--[/SCRIPT]
--{code}
Yvan KOENIG (VALLAURIS, France) lundi 2 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : http://public.me.com/koenigyvan
Please : Search for questions similar to your own before submitting them to the community
For iWork's applications dedicated to iOS, go to :
https://discussions.apple.com/community/app_store/iwork_for_ios

Similar Messages

  • Select query based LOV for tabular form attributes

    Hi HTMLDB Team,
    Congrats u all for the new release of HTMLDB in htmldb.oracle.com.
    I badly need a solution of the below problem.
    Say , i have table called user_col_comments now i want to display the table_name ,column_name and comments in a tabular form.I displayed only one row for the tabular form.Now i create a select query based LOV for attribute table_name where i got all table_name in drop down list.
    Point is that after selecting any data from drop down table list i want to get the corresponding fields to be populated in column_name attributes.How can i wrote the select query based LOV for the attibute column_name.
    I wrote it as 'select column_name d,column_name r from user_col_comments where table_name=:TABLE_NAME Its not working?
    Similarly i want same thing to display for comments after matching both table_name and column_name.
    Any solution to get rid of those problem will be highly appreciable...
    If u need my htmldb.oracle.com userid and password to solve the problem i will sure let u email it.
    Cheers,
    Eman

    hi rchalton,
    can u plz little bit more clearer .I know hopefully u can imagine the problem and may u guide me thru proper way.....One think i understand that there must be multiple process and submit but "only when..." that u have said i cant understand that part........
    U are welcome to give me proper solution.....
    Thanks for the reply ....atleast one can pay hid to me.....
    Cheers,
    Eman

  • Attaching same style in Standard text as well as adobe form

    Hi Experts,
    I have created 2 styles. One in se72 and second one in smatstyles.
    But when i use 1st one in standard text, i can't see this style in adobe form to attach.
    And 2nd one i can see it in adobe form but i can't see in standard text.
    I want only 1 style to be used in both places.
    Please help.
    Thanks in advance.

    Hello,
    You can achive this in two ways.
    First - Go to the form interface and right click on the node create a text field in the form context.
    In the properties tab on the right hand side of your form context you can specify Text Type.
    Following Text type can be selected.
    Include Text
    Text Module
    Dynamic Text.
    As per your requirement select Include Text and then specify the NAME, LANG & TEXT ID for the text.
    Once this is specified you can add this text field on the form layout.
    NOTE: This normally works only if you maintain this text in the header or footer on the form but not at the line item level.
    There are few issues when you try to print this text at the line item level.
    To overcome this if your requirement is at the line item level follow second method mentioned below.
    User READ_TEXT to read the standard text in your driver program. Then Pass the internal table returned with the text from this FM to another FM FORMAT_TEXTLINES.
    This table is then used to map it on the adobe form. The second function module takes care of formatting.
    Thanks

  • I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
    If you only have the free Reader then you can still do it, but it requires a script.

  • Display as Text based on LOV - formating

    I have a slight problem with
    Display as Text based on LOV report column formating.
    Whatever I try to enter, regardless where CSS Clas, CSS Style - formating simply
    doesn't work. The only formating that works is:
    Number / Date Format.
    Is there a solution for this?
    Thanks,
    Denes Kubicek

    I found a simple workarround and I will post it:
    1. Instead of using LOV I created a function that does the same
    ( using a cursor and returning a value )
    2. Since the field needed to act as a link, I used css to format the output
    and it worked just fine.
    Thanks,
    Denes Kubicek

  • How do I place a free-form text box in Adobe Pro XI?

    I am working in Adobe Pro XI, and am creating a form. The software auto-formats the location of text boxes and fields. Is there a way to manually place the location of this field?

    Update - This is using FormCentral which opened from Adobe XI Pro.

  • End user have ability to change font style in text field of interactive pdf form?

    Does the end user of an interactive pdf form able to change the font style, i.e.: make something bold or underline a word in a text field?
    I am making a form with text fields and the end user would like the ability to make something bold or underline it.. I do not see anywhere in acrobat that allows styles to be changed.
    I have created the form in Indesign > saved it as an interactive pdf and brought it into Acrobat.

    Thank you for the quick response! Do you set this in Indesign before exporting or do you set this in Acrobat? I am in Acrobat 10.1.10 and when I go to properties it doesn't give me  'options' to choose from.

  • Filling of S table fails for fields with free form text or description

    Hello Everyone,
    We are trying to rollup a new InfoCube into our BWA system and it fails with a short dump CONVT_CODEPAGE with exception being CX_SY_CONVERSION_CODEPAGE when filling up S table for a description field.
    The only difference between the new InfoCube we are trying to load and the other existing InfoCubes is that, the new InfoCube we are trying to load has a field/InfoObject which is free form description for a line item field.
    Also, when I checked the application log the system gives out the message "A Character Set conversion is not possible".
    Did anyone encounter this issue when trying to create BWA indexes for InfoCubes which have text columns in the InfoCube.
    We are currently at revision 52.
    Thanks in advance.

    Hi Dharma,
    It's an interesting and new BWA case for me, so sorry no direct answer. I'll try to replicate it in free time I hope you opened a message with SAP Support for this.
    From pure BW modeling perspective I normally model this in a way that this "description" Characteristic A is marked as "Attribute-only" and then used as a display attribute of another Characteristic B, e.g. Line Item Number. From BWA perspective it means that A is not indexed into the accelerator and joined only for display during OLAP time.
    Regards,
    -Vitaliy

  • How to display HTML formatted text in the field with Item Style: Raw Text

    How can I display HTML formatted text in the field with Item Style: Raw Text.
    Currently the Item Style is Raw Text, but the text is being displayed along with HTML tags without formatting.
    Regards

    Hi,
    Use Item Style formattedText.
    Regards,
    Gyan

  • PDF-form looses text style on another computer

    I created a PDF-form with text fields using our corporate font. My colleague has to open it in the Preview and insert text into those fields (she has corporate font installed). But while opening and typing the text, she got my text style lost (corporate font and probably its size). What should I do for she types in my forn and get the same text style as I have? Thank you.
    Arina.

    Do NOT use Apple Preview to open PDF forms. It corrupts them in various ways and is very buggy.
    Stick with Adobe software for best results.

  • Free-form adjustment to "Quick Selection Tool"

    Hello,
    I hope this is not one of those requests were the functionality already exists and I just can't find it.
    Would it be possilble to allow for a free-form, drag with pixel level presision changes to the selection already determined by the "quick selection tool" AI.  Most of the time when I use the tools, it selects 95% of what I intended but never quite right.  Any further addition to the selection goes way overboard and selectes way beyond my intended precision.
    Thank you,
    John
    Can be reached at below links in addition to this forum area.
    [email protected]
    http://www.elinenstore.com

    Hello,
    The problem is when the AI determines what it thinks is the actual object but does not include the entire object.  Specifically when I have a linen set that needs color adjustment to match a more true to life representation of a LCD/LED screen.  Several of the images have stacked sheet sets, one on top of the other.  Thet have curved edges on the vertical plane and flat on the horizonal.  The AI selects most of the single object but often misses the verticle edging.  When I try to add more analysis point to converge the entire object, it overestimates and grabs other sheet sets.  I want to do minute additions to the edging once the AI grabs as much correctly as possible.
    I hope this explains the core issue a little more.
    Thanks,
    John
    [email protected]
    http://www.elinenstore.com

  • How can I format a form so that all text entered is "all caps"?

    Thanks in advance for your help. I am trying to format a form so that all text extered is in "all caps". I am using Adobe Acrobat X. Any advice and help would be greatly appreciated. Thanks!

    You can use a custom key stroke script like:
    // custom keystroke
    if(event.willCommit == false) {
    if(event.value.length < 1 ) {
    // set first characater to caps
    event.change = event.change.toUpperCase();
    } // end lentgh less than 1;
    } // end custom keystroke
    And then a custom format or validation script:
    // custom format or validation script
    if(event.value != "" && event.value.substr(event.value.length -1, 1) != ".") {
    event.value = event.value + (".");
    } // not null and end  last character not ".";
    // custom format or validation script

  • SAP Standard Text (SO10) Character format in Adobe forms

    Hi Friends
    I created a standradrd text using 'S010' with Few character formats like 'bold' and 'italic' but when created 'Inlude text' element in adobe forms i could see only text coming in pdf output but not the formatting. Is there any way i could get the text character formatting also from standard text to adobe?. I appreciate your help.
    Thanks

    Total Posts:  534 
    Total Questions:  183 (4 unresolved) 
    Forum Points:  0 
    You ask a lot, but never helped a living soul. Why would anybody help you/ do your job?
    By the way the same question was asked a zillion times, so if you would care to search you would not receive this comment.
    Otto

  • Selected TAG doesn't format text.

    After pressing Enter key (PC) to begin new paragraph, then selecting TAG for that paragraph (eg., Heading2Body), text stays unformatted. Pressing Apply several times makes no difference. To solve this problem, I did a Copy Special < Copy Paragraph Format of previous Heading2Body text. Then, pasted the format where i planned to start a new paragraph. Is there a quicker way? Have any of you had this problem and, if so, how did you deal with it?

    Pls always include the specific version of FM in your msg (including the "pxxx" numbers as shown in Help About).
    When you say "selecting TAG for that paragraph" please clarify what specific actions, do you mean with your mouse, with keyboard shortcuts, or ??
    Are you on a master page or a body page?
    Sheila

  • Format textarea form text

    Hi,
    You probably all have posted messages on this forum.text is entered in textArea forms and when you type a new line it is automatically transfered with the textarea form value text...
    i want to implement this same behaviour : i have a jsp page with a form having a textarea . when i submit the form i want to have the text formated so each typed new line is transfer as a <br> html tag with texarea value text.
    is this possible ? how can i do it ?
    thanks.

    You can't make the text submit with <br> tags instead of the line separator.
    You CAN do a string replacement when it gets to the server end.
    Something like this:
    String value = request.getParameter("textAreaValue");
    value = value.replaceAll("\\n", "<br>");

Maybe you are looking for

  • Accesing a html parameter from servlet is not producing in a new file

    Hi,... I have passed two values from html and accessed thru a servlet file. In servlet, parameters are verified and result must passed to a new jsp file. Wen i run the file i can view only a blank page.I think the problem will be in servlet mapping.

  • External USB Connected Samsung DVD: Beeping/flashing of OS/applications

    I connected this drive (which is an internal model mounted in a NextStar USB 2 enclosure) to the USB port directly on the back of the mini (I have a Belkin powered USB base, and I'm thinking maybe I should try it in that). In any case, a blank DVD wa

  • Advanced Queues with Form6i - Error 512

    I try to manage AQ via Forms, but its doesn't work. If I try to compile the following code sample, I'll allways get a error message 512. This means... "error 512. Implementation Restriction: 'REMOVE':Cannot directly access remote package variable or

  • Business Graphics - Series Label

    Hi, I have 1 Category and 4 series in a Business Graphics. I want to display the Series Labels dynamically, and i have to map to the Context Variables for the Labels. But, i am not seeing any option to map the Label property to the Context Variable.

  • Download CS6 Design and Web Premium not working

    Hi, I have been given this link by Adobe after purchasing the Design and Web Premium. I have been able to download 2GB of the 4.5GB of the file 1 of 2 from this link in the English version for Windows. http://helpx.adobe.com/x-productkb/policy-pricin