Pages 5: Find and replace special characters
Has this feature gone? Or can anyone tell me where to find it? I neeed, for example, to replace double paragraph breaks with single ones, how can I do this?
I can't find it either, but the following appears to work:
Turn on Show Invisibles in the View menu.
Select (highlight) the double para breaks.
Use Command-E (Find using selected text).
Open the Find dialogue box (Command-F) and select Find & Replace.The selected para breaks will be in the Find text entry box, but will not be visible!
Click in the Replace text entry box.
Select (highlight) a single para break.
Go to the Edit menu / Find and select 'Use selection for replace' (it will not show in the Replace entry box).
In the Find & Replace dialogue box, click on the Forward or Back arrows to highlight the selected items (e.g. double para break) where you wish to start replacing in the document.
Use the Replace All / Replace & Find / Replace buttons as per usual.
Not a nice solution, but I hope it gets you going until Apple restores the previous functionality!
Similar Messages
-
Find and replacing special characters
we have just discovered that after database unicode conversion, some special characters are starting to appear in the database after users copy and paste into the database.
For example from a table, we can identify it with:
SQL> select count(*) from table where column_name like '%' || chr(25) || '%';
COUNT(*)
15
This is for a table.
How can this be done to identify the characters for all tables because we are not sure of all the tables
ThanksHi,
Please try below pl/sql block to identify special characters in tables with respect to columns
set serveroutput on size 1000000
declare
procedure gooey(v_table varchar2, v_column varchar2) is
type t_id is table of number;
type t_dump is table of varchar2(20000);
type t_data is table of varchar2(20000);
l_id t_id;
l_data t_data;
l_dump t_dump;
cursor a is
select distinct column_name
from dba_tab_columns
where table_name = v_table
and data_type = 'VARCHAR2'
and column_name not in ('CUSTOMER_KEY','ADDRESS_KEY');
begin
for x in a loop
l_id := null;
l_data := null;
l_dump := null;
execute immediate 'SELECT ' || v_column || ', ' || x.column_name || ', ' ||
'dump(' || x.column_name || ')'
|| ' FROM ' || v_table
|| ' WHERE RTRIM((LTRIM(REPLACE(TRANSLATE(' || x.column_name ||
',''ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*()_+
-=,!\`~{}./?:";''''[ ]'',''A''), ''A'', '''')))) IS NOT NULL'
bulk collect into l_id, l_data, l_dump;
if l_id is not null then
for k in 1..l_id.count loop
dbms_output.put_line(v_table || ' - ' || x.column_name || ' - ' ||
to_char(l_id(k),'999999999999'));
dbms_output.put_line(l_data(k));
dbms_output.put_line(l_dump(k));
dbms_output.put_line('*********************');
end loop;
end if;
end loop;
end gooey;
begin
gooey('table1','coln1');
gooey('table1','coln2');
gooey('table2','coln3');
end;
Like this you can get special characters for all the columns/particular column from table
Thanks,
Nitin -
Find and Replace Japanese characters in pdf file on iPhone
Hi eveybody !
I want to find and replace Japanese characters in pdf on iPhone.
I using zlib to deflate stream - endstream block and extract text.It's work fine with latin-text.
But when i work with japanese characters , I don't know how to do it ?
I decode a sample japanese pdf file, and I know that each Japanese characters are performances as hex string : "<01b7><0e230a23>..."
But i don't know how to convert Japanese characters to the hex string like that.
Can evrybody help me?
Thanks!Searching is the same process as extracting - since it's about turning page content into something understandable. So that still remains what you need to learn/understand - of course, referring back to all the previous sections about font formats, etc.
Replacing in PDF is EXTREMELY DIFFICULT for two reasons - subset fonts and explicit glyph positioning. Have you determine (conceptually, if nothing else) how you plan to addresses these two issues?
PDF doesn't do UTF8 for page content - so don't worry about that. -
Vbscript to rename files and replace special characters
Dear Exprt,
would you please help to add addtional requirement for rename and replace special characters for file
by the below script i can re name.
strAnswer = InputBox("Please enter folder location to rename files:", _
"File rename")
strfilenm = InputBox("Enter name:", _
"Rename Files")
Set FSO = CreateObject("Scripting.FileSystemObject")
Sub visitFolder(folderVar)
For Each fileToRename In folderVar.Files
fileToRename.Name = strfilenm & fileToRename.Name
Next
For Each folderToVisit In folderVar.SubFolders
visitFolder(folderToVisit)
Next
End Sub
If FSO.FolderExists(strAnswer) Then
visitFolder(FSO.getFolder(strAnswer))
End If
[email protected]Thx would you please look below what wrong in its run nothing happend no error
strAnswer = InputBox("Please enter folder location to rename files:", _
"Test")
strfilenm = InputBox("Enter name:", _
"Rename Files")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set regEx = New RegExp
'Your pattern here
Select Case tmpChar
Case "&"
changeTo = " and "
Case "/"
changeTo = "_"
Case Else
changeTo = " "
End Select
regEx.Pattern = tmpChar
Sub visitFolder(folderVar)
For Each fileToRename In folderVar.Files
fileToRename.Name = strfilenm & fileToRename.Name
fileToRename.Name = regEx.Replace(fileToRename.Name, tmpChar)
Next
For Each folderToVisit In folderVar.SubFolders
visitFolder(folderToVisit)
Next
End Sub
[email protected] -
Looking for, and replace special characters
Hi
I am quite new to AppleScript and can't figure this out. Any help would be appreciated.
I have received several (a lot of) folders containing images with some strange characters in the file names. The images has to go to web, and I want to replace those characters with some that are web friendly. The characters in question is some Swedish A's and O's (Ä, ä, Ö, ö) and one that looks like the Apple Command symbol. (I was told this one is a combination of a and e).
Then, I would like to replace all spaces between the words in the file names with an underscore.
In addition, all image file names start with capitals and I would like to replace these as well.
Thanks
Neal
G5 Mac OS X (10.4.6)Here's a modified version of the standard script:
try
tell application "Finder" to set the source_folder to (folder of the front window) as alias
on error -- no open folder windows
set the source_folder to path to desktop folder as alias
end try
display dialog "Search and replace in:" buttons {"File Names", "Folder Names", "Both"} default button 3
set the search_parameter to the button returned of the result
repeat
display dialog "Enter text to find in the item names:" default answer "" buttons {"Cancel", "OK"} default button 2
set the search_string to the text returned of the result
if the search_string is not "" then exit repeat
end repeat
repeat
display dialog "Enter replacement text:" default answer "" buttons {"Cancel", "OK"} default button 2
set the replacement_string to the text returned of the result
if the replacement_string contains ":" then
beep
display dialog "A file or folder name cannot contain a colon (:)." buttons {"Cancel", "OK"} default button 2
else if the replacement_string contains "/" then
beep
display dialog "A file or folder name cannot contain a forward slash (/)." buttons {"Cancel", "OK"} default button 2
else
exit repeat
end if
end repeat
display dialog "Replace “" & the search_string & "” with “" & the replacement_string & "” in every item name?" buttons {"Cancel", "OK"} default button 2
tell application "Finder"
set the item_list to every item of entire contents of source_folder
tell me
set item_list to reverse of the item_list
end tell
set source_folder to source_folder as string
repeat with i from 1 to number of items in the item_list
set the_name to name of item i of the item_list
set this_item to item i of the item_list
set this_info to properties of this_item
set the current_name to the_name
set change_flag to false
repeat with this_char from 1 to (count items of search_string)
if the current_name contains item this_char of (search_string) then
if the search_parameter is "Folder Names" and ¬
folder of this_info is true then
set the change_flag to true
else if the search_parameter is "File Names" and ¬
folder of this_info is false then
set the change_flag to true
else if the search_parameter is "Both" then
set the change_flag to true
end if
if the change_flag is true then
set this_item to item i of the item_list
-- replace target string using delimiters
set AppleScript's text item delimiters to the item this_char of search_string
set the textitemlist to every text item of the current_name
set AppleScript's text item delimiters to the item this_char of replacement_string
set the newitemname to the textitemlist as string
set AppleScript's text item delimiters to ""
set the current_name to newitemname
end if
end if
end repeat
my setitem_name(thisitem, current_name)
end repeat
end tell
beep 2
on setitem_name(thisitem, newitemname)
tell application "Finder"
--activate
set the parentcontainerpath to (get the container of this_item) as text
if not (exists item (the parentcontainerpath & newitemname)) then
try
set the name of this_item to newitemname
return this_item
on error the error_message number the error_number
if the error_number is -59 then
set the error_message to "This name contains improper characters, such as a colon (:)."
else --the suggested name is too long
set the error_message to error_message -- "The name is more than 31 characters long."
end if
--beep
tell me to display dialog the error_message default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {newitemname, button_pressed}
if the button_pressed is "Skip" then return 0
my setitem_name(thisitem, newitemname)
end try
else --the name already exists
--beep
tell me to display dialog "This name is already taken, please rename." default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {newitemname, button_pressed}
if the button_pressed is "Skip" then return 0
my setitem_name(thisitem, newitemname)
end if
end tell
end setitemname
This script variant works by accepting a source string in the form "AB" and desired string "CD". When run, ABCA will become CDCC with the sample strings.
(19254) -
Hi,
I am trying to figure out how to find and replace subscripted characters, e.g. H2O (with the "2" subscripted). How is this done?Yeah, it has two options. Use formatting (e.g., subscript, but also font, weight, size, leading, colour and whatnot) or do not use formatting -- which does not help, as it is the same as your search string ...
But fear not. If your "H2O" is the only one, you can do this -- what Peter meant with his two-step.
1. Search for "H2O" and replace it with "H[ha!]O". Be sure to check both "whole word" and "case sensitive" icons below the replace field. Every "2"
i inside
a text "H2O" will be replaced by something unique -- that's what the "[ha!]" should be.
2. Replace "[ha!]" with "2".
i Uncheck
"whole word" and "case sensitive" (because elsewise it won't find anything), and in the Replace Formatting field, select "Subscript" in the Type panel. This 2nd time, you are only replacing the unique string that was put into its unique position in the previous step.
A 2nd option (one that I don't recommend to freshmen!) is to use the GREP Find-and-replace. This is, in the right hands, an extremely powerful tool, which can
i search
for "H2O" and
i change
just the "2" part. If I only knew how, off the top of my mind! But, it's neither an easy to remember shortcut, nor perfectly logical, and the 2-step method is. -
Need advanced "Find and Replace" method
I have bunch of pages need "Find and Replace" work in html
coding, but I can't use DW's "Find and Replace" function to do with
it. Here's the sample code:
quote:
"<tr valign="top"><td align="center"><a href="
../photo/ccg/pages/Columbus Grill
M_jpg.htm"><img src="../photo/ccg/thumbnails/Columbus
Grill M_jpg.gif" border="0" onClick="MM_openBrWindow('
../photo/ccg/pages/50th Yard
M_jpg.htm','rr','width=386,height=306')"><br>
Columbus Grill M</td>
<td align="center"><a href="
../photo/ccg/pages/Columbus Grill
W_jpg.htm"><img src="../photo/ccg/thumbnails/Columbus
Grill W_jpg.gif" border="0" onClick="MM_openBrWindow('
../photo/ccg/pages/50th Yard
M_jpg.htm','rr','width=386,height=306')"><br>
Columbus Grill W</td>
<td align="center"><a href="
../photo/ccg/pages/Cookies Lounge
M_jpg.htm"><img src="../photo/ccg/thumbnails/Cookies
Lounge M_jpg.gif" border="0" onClick="MM_openBrWindow('
../photo/ccg/pages/50th Yard
M_jpg.htm','rr','width=386,height=306')"><br>
Cookies Lounge M</td>
<td align="center"><a href="
../photo/ccg/pages/Cookies Lounge
W_jpg.htm"><img src="../photo/ccg/thumbnails/Cookies
Lounge W_jpg.gif" border="0" onClick="MM_openBrWindow('
../photo/ccg/pages/50th Yard
M_jpg.htm','rr','width=386,height=306')"><br>
Cookies Lounge W</td>
<td align="center"><a href="
../photo/ccg/pages/Corcorans
M_jpg.htm"><img src="../photo/ccg/thumbnails/Corcorans
M_jpg.gif" border="0" onClick="MM_openBrWindow('
../photo/ccg/pages/50th Yard
M_jpg.htm','rr','width=386,height=306')"><br>
Corcorans M</td>
</tr>"
You can see I need to use EVERY highlighted code to replace
each NEXT bolded code, highlighted code are deffirent but bolded
code are the same. Now I just do it manually, but there are
thousands of them.
Is any one has a better method using DW's "Find and Replace"
function to do this job automatically?Using Templates with a 900 page site is a crime against
humanity. You reach
the optimal size for Templates between about 50 and 100.
The error you are getting suggests that there are coding
errors on the page
(perhaps even unrelated to ANY DW Template markup). We'd need
to see the
page to make progress with what that might be, as Alan says.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"RyanWaters" <[email protected]> wrote in
message
news:ggs7fq$gnq$[email protected]..
>I am a little green to this all. I am trying to find and
replace a word
>inside
> the edit region and Dreamweaver will not change it,
because it says its
> inside
> a locked region, but its a editable region?
> I have about 900 pages I need to make this change on and
was relying on
> the
> find and replace tool to do that. I tried differn't
advanced options,
> nothing
> seams to change it. I am using cs3. Thanks for any help
> -
Using applescript for Find and Replace All in Pages 2.0
i saw that Pages 2.0 is scriptable
i try to create a script for merge use to find and replace all occurence of a certain string using a script but Pages doesn't seems to respond to "Find" even using "System Events"
how can i do to use this function with a script
Thanx for any help
S.B.
ibook G3 Mac OS X (10.4.6)OK, here's another example. This one gets the text as a string and uses the offset property to find "[", presuming it to be a merge delimiter. (Pages' text doesn't support "offset of").
One failing of this scheme is that the offsets are incorrect if you have inline objects (pictures, shapes, tables, etc.). While it is probably possible to compensate for them, that's a trickier proposition.
<PRE>-- Example merge replacements:
property mergeText : {"[name]", "John Smith", "[address]", "1234 Anystreet"}
on lookup(mergeWord)
set theCount to count of mergeText
repeat with x from 1 to theCount by 2
if item x of mergeText = mergeWord then
return item (x + 1) of mergeText
end if
end repeat
-- If merge field is not found, delete it (replace it with the empty string)
return ""
end lookup
tell application "Pages"
repeat
tell body text of document 1
-- Get text as a string so that "offset of" can be used.
set allText to it as string
set startOffset to offset of "[" in allText
if (startOffset = 0) then
exit repeat
end if
set endOffset to offset of "]" in allText
select (text from character startOffset to character endOffset)
end tell
set mergeWord to contents of selection
tell me to lookup(mergeWord)
set replacement to result
set selection to replacement
if (replacement is "") then
-- Get rid of extra whitespace (space or return)
-- Do it in a "try" block to handle edge cases at start or end of text.
try
set theSel to (get selection)
set ch1 to character before theSel
set ch2 to character after theSel
if ((ch1 is " " or ch1 is return) and (ch2 is " " or ch2 is return)) then
select character after theSel
delete selection
end if
end try
end if
end repeat
end tell</PRE>
Titanium PowerBook Mac OS X (10.4.6) -
VBA Word Find and Replace characters but excluding certain characters
I am trying to write VBA code in Word that I will eventually run from a VBA Excel module. The aim of the project is to find specific strings in the open Word document that have length of either one or two characters and are of a certain format, and replace
them with other strings in the same format. This is to do with transposing (i.e. changing the musical key) of chord symbols in a songsheet in Word. The Find and Replace strings are contained in ranges in an Excel workbook, which is why I want to eventually
run the code from Excel. I'm much more experienced in writing VBA code in Excel than in Word, and I'm fairly confident with transferring the 'Word VBA' code into an Excel module.
At the moment I'm trying out code entirely in Word, and I've come across a stumbling block. For example, I want it to Find "A" and replace with "B",
BUT only if the "A" is NOT followed by "#" (sharp) or "b" (flat).
Here is the code I've got in Word VBA, which I obtained by editing code produced by the recorder:
Sub F_R()
'Find text must have specific font
With Selection.Find.Font
.Bold = True
.Underline = wdUnderlineWords
.Superscript = False
.Subscript = False
End With
'Replacement text must have specific font
With Selection.Find.Replacement.Font
.Bold = True
.Underline = wdUnderlineWords
.Superscript = False
.Subscript = False
End With
'Find & Replace strings
With Selection.Find
.Text = "A" 'hard-coded here for testing, but this will
'eventually be referenced to a cell in Excel
.Replacement.Text = "B" 'hard-coded here for testing, but this will
'eventually be referenced to a cell in Excel
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = True
.MatchWholeWord = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
For the Find & Replace section I want to do something like:
With Selection.Find
.Text = "A"
.Text <> "A#"
.Text <> "Ab"
.Replacement.Text = "B"
End With
- but this produces a syntax error, presumably because you can have only one .Text line (or it won't accept <>?)
I tried adopting the way of excluding chars when using the Like operator, and while it compiles, it will not replace
any "A":
With Selection.Find
.Text = "A[!b#]"
.Replacement.Text = "B"
End With
I suspect that I'm going to have to change tack completely in the way I'm doing this. Do you have any suggestions, please?
The chord names/symbols are preceded/succeeded by either spaces or paragraph returns and can look like these, for example (all Font Bold and Underlined words only):
C<sup>7</sup>
Dm<sup>7</sup>
Eb<sup>-5</sup>
Bb<sup>+11</sup>
F#m<sup>7</sup>
i.e. [ABCDEFG][b # | optional][m |optional][- + | superscript, optional][2 3
5 6 7 9 11 13 | superscript, optional]
The crux of my problem is that the note A should be treated as entirely distinct from Ab or A# (and similar for other flattened/sharpened notes).
Sorry for long post.Hi Ian,
It is not easy to find Microsoft forums. However this forum is for the Visual Studio Net version.
Try this forum for VBA.
https://social.msdn.microsoft.com/Forums/en-US/home?forum=isvvba
Success
Cor -
Find and replace characters in file names
I need to transfer much of my user folder (home) to a non-mac computer. My problem is that I have become too used to the generous file name allowances on the Mac. Many of my files have characters such as "*" "!" "?" and "|". I know these are problems because they are often wild cards (except the pipe). Is there a way that I can do a find and replace for these characters?
For example, search for all files with an "*" and replace the "*" in the file name with an "@" or a letter? I don't mind having to use the terminal for this (I suspect it will be easier).
Is this possible? Does anyone have any suggestions?
Thank you in advance for any help you may be able to provide.
Mac OS X (10.4.8)Yep.
"A Better Finder Rename" is great for batch file renaming.
http://www.versiontracker.com/dyn/moreinfo/macosx/11366
Renamer4mac may be all you need.
Best check out VersionTracker. In fact everybody should have this site bookmarked and visited daily.
http://www.versiontracker.com/macosx/ -
Address book: Find and replace characters?
Hi all,
I just imported VCF file from Outlook to Address book. I am in Iceland and the Icelandic characters came wrong. Is there any way to batch find and replace characters in Address book? That is in individual cards.
Thanks,
HilmarI believe the only way would be to write an AppleScript.
-
Finding and replacing (international??) characters
I'm having trouble finding and replacing characters. Can anyone help me see the wood for the trees?
The characters in question are single quote characters (I asume) which have been entered in a windows box/word program/filemaker progremme or some other. As such, when I open them in a flat file on my Mac I see the following:
�A L O E�
where the "�" and the "�" should actually be single quotes.
On my Mac I can weed these out with the following:
public String cleanString(String text)
if(text != null && text.length() > 0)
if(text.indexOf("�") > -1)
text = replace(text, "�", "'");
if(text.indexOf("�") > -1)
text = replace(text, "�", "'");
if(text.indexOf("�") > -1)
text = replace(text, "�", "'");
if(text.indexOf("�") > -1)
text = replace(text, "�", "'");
return text;
}But on my server (Linux) this just isn't working. It doesn't find the characters. I've tried converting each character to unicode and looking for it that way.
public String cleanString(String text)
String cleaned = "";
if(text != null && text.length() > 0)
boolean flag = false;
for (int i = 0; i < text.length(); i++)
int j = (int)text.charAt(i);
String u = Integer.toHexString(j);
if("221a".equals(u))
flag = true;
continue;
if(flag && "b4".equals(u) || "2260".equals(u) || "a8".equals(u) || "c6".equals(u))
cleaned += "'";
flag = false;
else
if(flag)
cleaned += text.charAt(i -1) + text.charAt(i);
else
cleaned += text.charAt(i);
flag = false;
return cleaned;
}But the same thing happens. It works on my mac, but not on my server.
Part of my problem is that these 'offending characters' are actually comprised of two chars:
eg:
'\u221a' + '\u00b4'
Can anyone point me in the right direction?As such, when I open them in a flat file on my Mac I see the following:First you should open the file using the correct character encoding. Since the file originates from a Windows box, the encoding is probably Windows-1252, aka CP1252. You'll find the code for opening and reading here, just change "UTF-8" to "CP1252."
http://javaalmanac.com/egs/java.io/ReadFromUTF8.html
Next, you should not write non-ASCII characters in source code because it is not portable. If the source code is moved from one system to another, like from Mac OS X to Linux, the way the compiler translates bytes to characters may change. Only ASCII is safe, so it is better to use the portable Unicode escapes (\uXXXX) to represent non-ASCII characters in strings.
From Microsoft's own reference, the "smart" single quotes are U+2018 and U+2019: http://www.microsoft.com/globaldev/reference/sbcs/1252.mspx
so the code to replace them would be
text = text.replace('\u2018', '\'');
text = text.replace('\u2019', '\'');You would need to do the same for the double quotes, \u201C and \u201D
btw as there's a method for replacing charcters in the String class, you don't need to write a new one -
Has find and replace really been crippled in this update to Pages.
I've just tried to do a find and replace in the new Pages and can't find the option that used to be in old pages of Advanced where you could simply replace Paragraph Breaks or Carriage Returns with other symbols like comma or alike.
Please don't tell me it's gone because this would render Pages completely pointless to me and I've have to install another "proper" word processor.
Please tell me I'm panicking and that don't be silly it's just moved.The new version on your iPad is Pages v2 for iOS and has the same format as Pages 5 on OSX 10.9.
You would need to reinstall iOS 6 to maintain Pages v1 for iOS and maintain compatibility with Pages '09.
On your Mac you should have 2 versions of Pages:
Pages 5 is in your Applications folder.
Pages '09/'08 is in your Applications/iWork folder.
Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
Anything that is saved to iCloud is also converted to Pages 5 files.
All Pages files no matter what version and incompatibility have the same extension .pages.
Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
Apple has not only managed to confuse all its users, but also itself.
Note: Apple has removed over 90 features from Pages 5 and added many bugs:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
Peter -
Restrict find and replace to actual page
I am trying to restrict a "find and replace" to the actual page I am working on in my javascript.
Is this possible and how can it be done?
Thanks!In scripting, find and replace works on a text object or collection. So
you would need to get a reference to all the text on your page, and run
the findText() method on that.
For instance, in the easy case that there is only one text frame on your
page, and assuming that the variable myFrame holds that text frame, you
would simply do:
myFinds = myFrame.findText();
(this is assuming you've set all the findTextPreferences as necessary to
find what you're looking for).
Ariel -
How do I include a line feed in the replace section of the
find and replace feature of Homesite 5.5?
Converting many lengthy files from <pre> and <tt>
formats into CSS. Presently the target pages have paragraphs broken
into short lines of text with CR/LF's on every line. I wish to
revert the paragraph back to 'wrapped' text with a single CR at the
end of the paragraph.
I can 'find' and eliminate the " ¶ " symbol from each
line, but I do not know how to "replace " text that should include
this symbol.
text</p><p>¶
This is some sample text to¶
show graphically the problem¶
I am having.</p><p>¶
New Paragraph¶
When what I want is :-
<p>This is some sample text to show graphically , the
problem I am having.</p>¶
<p>New paragraph
Presently I can add hash marks (##) where I wish the
paragraph to end. I then globally remove all the "¶"'symbols
that appear in the text. What I want to do now is replace the ##
with code which would produce the following two lines
</p>¶
<p>
I have tried many different codes, such as chr(13) and \r,
but they all just insert the code as straight text.
Can anyone clue me in?
Thanks, gil das far as special chars in simple F-and-R, I replace some
non-ascii chars by copying from a doc and pasting into the dialog
field.
That wouldn't work for CR/LF, so you have to use the extended
search and replace there as you found out.
Note there is also a function for "Replace Double Spacing
with Single Spacing" (on the menu, under Search).
Probably no help for this case, but good to know.
BTW, be careful with your extended search and replace on
CR/LF. If your lines don't end in a space and a CR/LF, you might
want to replace CR/LFs with a space. Otherwise the last word of one
line might be butted against the first word in the next line with
no space when the CR/LF is removed.
Of course that's not a great solution since it adds a lot of
spaces where you have CR/LFs, and you may not want them all
there...
There is a Remove Returns script that might be of use to you.
It's a lot more manual than you probably want for doing lots of
files.
http://www.wilk4.com/asp4hs/list5.htm#removereturns
let us know here if you find some better solution please,
good luck,
jeff
Maybe you are looking for
-
Manhours not refelecting in CJI3 Line item report
What user is meaning that manhours entered by employee/end users (personnel) for their daily work in the project does not reflect in CJI3 report (Actual line items display). I have posted manhours in CAT2 but these are not getting transferred in Proj
-
Which two are attributes of /SQL*Plus? (Choose two) A. /SQL*Plus commands cannot be abbreviated. B. /SQL*Plus commands are accesses from a browser. C. /SQL*Plus commands are used to manipulate data in tables. D. /SQL*Plus commands manipulate table de
-
Photoshop Elements 2.0 and Vista
I have elements 2.0 and just bought a refurbed computer with windows vista. Is there a way to make elements 2.0 work on vista? I NEED to use this program and I have no extra money to upgrade right now. Thanks for your help!
-
There should really be a playlist type application to add favorite radio stations to. I love many of the stations but its kind of annoying to sort through the hundreds of them each time i want to switch. Just an idea ^^. Maybe this isnt the place to
-
How to convert a PrE 3.0 project to PrE 9.0
I have some old videos that were done in Premiere Elements 3.0 and I wish to edit them. I have PrE 9.0 on my current computer, but it won't even open the old version. Any help would be appreciated. Rick