FDK: Problem with line breaks / carriage returns

Hello


I met a strange problem with strings when you use the FrameMaker API. We have a FAPI customer who translated documents FM reading in their content, by replacing their text by the new translated text and in return the change in writing.

However, I found that some strings are starting with a \r (carriage return) character, when we read in and when we write their return, they begin with \r\n, which moves text to the bottom line, and can break things as references etc. I don't know exactly why this is happening, we are using Visual C++ and we do a lot of conversions between classes CString and StringT types so maybe this conversion process are to do.

To be honest, I find the appearance of newlines and carriage returns in the frame channels somewhat odd frame API breaks up the text of a paragraph into fragments for you anyway, so I would have thought that the use of these characters is redundant. That's a big assumption however so correct me if I'm wrong.

We have implemented a work around by which our program strips newlines off channels before writing their return

but in reality, what we really need to undress returns to the main line of strings, before starts the printable text in a string.

I wonder what others have to say about this WRT its security approach. Any advice would be appreciated, thanks

Eric

Eric,

I did a little greater experimentation, based on my previous comments (sorry, should have done that before I clicked on the Post before.)  When I programmatically add a \r one paragraph, I don't see no effect in page layout. This is consistent with my suspicions so far. I really think that, maybe, these characters are misleading and should be removed from the beginning.

Russ

Tags: Adobe FrameMaker

Similar Questions

  • In v31.0, I can view is more 'raw' XML files with line breaks and ' < ' and ' / > ' characters. Is there a setting that will give me this option?

    Until a few days ago when I opened a file XML with Firefox, I see the content of the file appears with line breaks and ' < ' and ' / > ' and elements. Like this:

    fixed image in < typeOfResource > < / typeOfResource >

     <genre authority="marcgt">picture</genre>
     <genre authority="nmc">Print, Photographic</genre>
     <originInfo>
       <dateIssued encoding="marc">1884</dateIssued>
       <dateIssued encoding="marc">1884</dateIssued>
       <issuance>monographic</issuance>
     </originInfo>
     <language>
    

    Now, it will display like this:

     still image picture Print, Photographic 1884 1884 monographic eng electronic
    

    No tags or line breaks. I need to see the entire XML file. How can I configure FireFox to display this for me? One of my colleagues uses v31.0 and XML views with tags and the line breaks for him.

    For example, I was looking at files sitemap.xml (search Google for inurl:sitemap.xml). For those who have not declared a style sheet, you should always see the classic "source highlight: presentation

    Example: http://www.website.com/sitemap.xml

    Are the files that don't appear as similar planned by not declaring a style sheet?

    As a temporary workaround, you can view the source to see the original. Either:

    • CTRL + u
    • Right click > view Page Source
  • Problems with line spacing - not able to adapt

    Having some problems with line spacing - I work in a file that I've not been created.  The phenomenon that occurs is as follows: I have a block of text, when I increase or decrease the foreground one point at a time, nothing happens. As I continue to increase, the line of text will suddenly blow up about a quarter of an inch.

    For example, I 8.5pt type whose main value to auto (10.2) - I hit increases by increments of 1 point, the line does not, only when I get to 13pt we must answer and bumps up to about 1/4 in. I continue to increase by increments of 1 point 13, and line does not respond until I reach 25pt, how the line of bumps down on another 1/4 of an inch.

    This could be the cause?

    It's not downtown... The text is printed to line up on the starting grid.

  • Muse CSS output with line breaks?

    Is it possible to go back to the way Adobe Muse written CSS in how it used to, with line breaks and not one long stream?

    I use Muse to build quickly to the HTML and elements CSS that I take in a custom CMS that I built for my client basically build, modify and maintains its Web site. It works really well, but now I've upgraded to a newer version of Muse the CSS seems to appear as a constant stream no line breaks. I guess this is to draw down the size of the file, but it is extremely difficult to isolate and alter some elements. Y at - it an option to export the CSS with line breaks?

    {{I could use a search and replace in a code editor to replace the} to} \n, but I like Adobe Media and it doesn't support \n apparently.

    Thanks in advance

    A

    Disable this

  • Replace the hyphen with line break

    Hello
    In my application, I want to replace the hyphen with line break
    . I use APEX4.0
    I use the following javascript code:

    < html >
    < script type = "text/javascript" >
    function test().
    {
    var visitorName = "< br / > ';
    var myOldString = "& P2_SI.";
    var myNewString = myOldString.replace (/-/ g, visitorName);
    }
    < /script >
    < / html >

    I have no idea how the get executed and make javascript work... can anyone help?

    Suzi,

    I changed the code for page 1:
    I don't know that is what you want, but it works :)
    That's what I did

    1. deleted tags
    2 P1_RESULTS element created to keep results
    3. $x_Value ("P1_RESULTS", myNewString) occasion; to fill a new element

    You cannot set the value P1_S2I in dynamic Action (onchange) - it looks like the code calls herself and kills the browser

    Lev

    Published by: the on August 27, 2010 11:49

    Published by: the on August 27, 2010 11:53

  • HTMLEditFormat/HTMLCodeFormat with line breaks and newline

    I seeks to some user entered the information on the screen and hit my a problem of output formatting. If I use HTMLEditFormat(), I lose all the line breaks, but that Word wraps nicely. If I use HTMLCodeFormat(), I get line breaks, but the text isn't as word wrap, making some really large screens, even if I put the information in a table with specific to a specific width defined. Is there a way to get the best of both worlds? I need to be able to keep line breaks (sometimes they seized lists or have several paragraphs) but want to word wrap too so that it is easy to read without scrolling sideways. Any ideas?

    Thanks for your suggestions. Given that the information is entered by external users and displayed to the public, I use HTMLEditFormat and HTMLCodeFormat to help prevent script attacks, so don't really want to drop them altogether. However, I discover after playing with the suggestion listed here, it will work: #Replace (HTMLEditFormat (mytext), chr (10),')
    (', 'all') #.

    HTMLEditFormat gets rid of the carriage return character, but not the line supply, so it is possible to replace line breaks with
    to create the desired effect.

    Thanks for your suggestions.

  • Problems with line spacing and text in Indesign 6 rate

    Hello everyone. I'm a graphic designer working with new magazine layout in Indesign. I used Quark for years and recently fell on this problem...

    In a paragraph, we usually use a soft return back some words to the next line. However, there are opportunities, I notice that in doing so the lines above where I am bumping the word ebb and Exchange. I've never had a problem with this before and it is a serious problem for us. Is it a setting I have on that I'm not aware? What can I do to avoid what is happening?

    Thank you for any input or advice.

    It is one of the main differences between Quark and ID.

    ID has a "paragraph composer" for will as a simple line like Quark composer, and it is enabled by default. When you use the paragraph composer, text is constantly analyzed and spacing adjusted for better form and appearance (according to the spacing algorithm and parameters of your justification) for the whole paragraph. If force you a line break, ID can adjust all the lines above as well as the following lines.

    If it is a 'serious problem' you shoud probably witch to the composer line simple. You will find a drop down for it in the dialog box of the definitin of paragraph under the parameters of the Justification style, or you can change individual paragraph as a local override from the steering wheel to control panel menu.

    Most of us who've been ID user for some time find the paragraph composer include the forces of the ID, and feel that it generates more nice looking text than a single-line composer.

  • Text fields with line breaks appear only the text before the first break

    I have a multiline text field in a Flash format that accepts free-form text (which means that the user can press the back key to put space between paragraphs). When this text field is printed in a PDF report, the text after the first declaration of entries by the user is cut off. The field in the report is set to: float, stretch with overflow and print when detail overflows, among others.

    I tried to set the field in the report to ParagraphFormat (query.foo) - and in this case it prints on the rest of the text, but it does not insert spaces appropriate between the lines. If anyone knows a way to get all of the text to be printed with the appropriate spacing to return, your help would be appreciated.

    I am running 7.02.

    Thank you!

    I found the solution to my problem. Looks like how Flash interprets a carriage return is different from an HTML form. He has worked on the ground in the CFR.

    #Replace (query.foo, Chr (13), Chr (10), "ALL") #.

  • binary file with line break

    Hello

    Today, I need to import data from a binary file / mixed text. The structure is

    CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2

    CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2

    CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2

    My first attempt was a DataPluginExample3.VBS updated the

    Void ReadStore (File)

    Sun block: SetBlock = File.GetBinaryBlock)

    Dim Channel1: Set channel 1 = Block.Channels.Add ("Low-Timer", eU16)

    Canal2 Dim: Set Canal2 = Block.Channels.Add ("High-Timer", Ue16)

    Dim canal3: Canal3 Set = Block.Channels.Add ("CrLf", Ue16)

    Dim ChannelGroup: Set ChannelGroup = Root.Channelgroups.Add ("ESR_Timing")

    ChannelGroup.Channels.AddDirectAccessChannel (Channel1)

    ChannelGroup.Channels.AddDirectAccessChannel (Channel2)

    ChannelGroup.Channels.AddDirectAccessChannel (Channel3)
    "(Kanal 3 ist nur $OD$ OA CrLf)"

    End Sub

    Unfortunately, each odd sample, the data are corrupted and then become misaligned. And the beginning of data entry does not exactly start a new line.

    So I would use the CrLF to re-sync.

    How can I mix the approach of the ASCII-readline with binary data?

    The following does not work: I try to tell the trainer to use vbNewLine (= CrLf = $0D $0) to separate lines and use the channels of direct access with the data type of U16. But when you use the line break, apparently the import filter also expects the delimiters instead of raw binary values.

    Void ReadStore (File)

    File.Formatter.LineFeeds = vbNewLine

    File.SkipLine () ' Sicherstellen, dass erste wird ignoriert line unvollstandige

    Sun block: SetBlock = File.GetStringBlock()

    Dim Channel1: Set channel 1 = Block.Channels.Add ("Low-Timer", eU16)

    Canal2 Dim: Set Canal2 = Block.Channels.Add ("High-Timer", Ue16)

    ' Dim canal3: canal3 Set = Block.Channels.Add ("CrLf", Ue16)

    Dim ChannelGroup: Set ChannelGroup = Root.Channelgroups.Add ("ESR_Timing")

    ChannelGroup.Channels.AddDirectAccessChannel (Channel1)

    ChannelGroup.Channels.AddDirectAccessChannel (Channel2)

    End Sub

    Thank you for your comments.

    Michael

    Hi Michael,

    I think this use made the rounds.  I had to ignore all partial to the first row of values in order to keep the correspondence of the line of the high and low timer values.  Also note that by default the U16s are read with LittleEndian byte order - you can change that with File.Formatter.ByteOrder = eBigEndian.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Adding breaks of the hyper link with line break

    I am trying to add a hyperlink to my document. The text I'm tying is long and crosses a line break. I select the text and then add the hyperlink, which seems to work very well, but then when I export to PDF and then click on the link, the link is broken at the break.

    Does anyone knows how to fix this?

    Yes. It is not InDesign, that determines what the hyperlink is right there, but rather the 'smart' function Acrobat who sees an address "www" and reads the text to the right on the PDF file. Pass this function disabled in Acrobat , and it should work.

    You can confirm that you have actually exported your document with active hyperlinks (it's a toggle in the export to PDF dialog box).

  • Problem with line graph

    Hello.

    After two days on a tray to solve the problem, I need your help.

    I have problem with presentation of the data. Data of growning Aproxx. linear. I read these data from device. Sometimes my .vi does not read data, and in this case my chart have collapses to zero (see the picture)

    http://prntscr.com/6yq9y2

    How can I do table: if not succesfull data read using previous value to display on the chart? In this case I don't have big fall to zero.

    Pls help.

    Another option would be to replace the 0 by NaN, this would produce a gap in the screen that would communicate that lacked a data point.

    Mike...

  • Footer running of the title of chapter with line break

    I currently have a footer running based on a text variable that is based on a paragraph style. But the position itself is quite large-fonted and will have line breaks. Thus, only the first word ends in the running footer.

    Is there a way around this? I thought I had a block of text for this variable on a hidden layer. But maybe there's an easier way?

    No matter if the text that is pulled by breaks of variable in all lines, as long as there is no real case sensitive characters included. In other words, your title may be 60 pt text box which is only two inches wide, so four or five words would go to several lines, but if the variable is formatted for text 9 pt, those words would fit easily in a width of 2 inches.

    That said, I know that you used breaks forced in some of the topics in your book that you want to include in your footer, to repeat the text in a nonprinting framework without breaks may turn out to be the only solution viable choice. I use this method from time to time, and when I do I have the really obvious non-printable text, so I do not forget that it is there. I do usually red.

  • How to read a text file with line breaks

    Hello

    I'm reading a text file in a textFrame.  We read in, but does not include line breaks is just a big long line of text.  I use the following code to read the file.  I tried to insert a \n character after each readln() but that has not helped.  I also tried to create a variable that the readln() was crammed in before setting the textFrame.contents variable, but which does not work either. I'm puzzled. Any help would be appreciated, thanks.

    While (! notesDoc.eof) {}

    noteTextRef.contents += notesDoc.readln ();
    }

    Doug

    Just use fileObect.read () instead of fileObect.readln () / / read online also try to use instead of \n \r

  • Convert Word to PDF. Problem with page breaks

    I have Office 2007 and I am trying to convert a Word document 100 pages in pdf.  However, the pages are in different offence and I find myself with more pages in the pdf document that causes problems with my table of contents and index.  Any advice on how to convert the Word doc into pdf exactly?  Thank you

    Set the printer default for printer Adobe PDF before converting to PDF. Word Repagine documents when you change printers. If your default printer is not the Adobe PDF printer, then when the printer goes temporarily to the printer pdf for conversion you will see the change in the pagination.

  • Problems with lines of text in the catalyst

    Hello the development team:

    We have problems with the text and flex. One of our files generates 18 errors at the margins of the text, here is a picture with the problems:

    http://img.skitch.com/20090604-dkgm86mtd313igirmcquuhiimh.jpg

    This error will not let me run the application we did

    Can I fix it in the Catalyst? How? I have to go back to illustrator, if I do, I can't go back without losing my current job in catalyst?

    Concerning

    No, unfortunately there isn't a way to remove the margins of Catalyst.

Maybe you are looking for

  • PC has seen TV opt w/no HDMI port. How connect us PC to TV HDMI ports?

    I got rid of sattillite TV and now regret. Although we can watch television on PC seemingly impossible to connect PC to TV w / HDMI HDMI Cable w/no PC port. Confused: this License 1 old PC has an option 'View TV' with no option of connectivity betwee

  • HP PSC 2355 all-in-one: HP PSC 2355 will not recognize Windows Vista Home Basic

    I bought this product in 2005. I'm just out of the box yesterday. The printer works fine. The software CD was made before Windows Vista Home Basic Edition. He acknowledges only 98, Me, 2000 and XP. He calls a Unknown600 to Vista. Is there a driver or

  • Change the color of the counter

    We have an application that would be really the meter or the caliber, I hope we could change the color. I've searched the forums and while it's a little change of color of eacharea, there is nothing on [i] Add [/ i] areas or change the [i] [/ i] area

  • WRT160N V3 does not restart after change of IP address

    I have a router WRT160N V3 I want to use it as an access point to improve the signal strength on the floor of our House.  When I change the address LAN IP of 192.168.1.1 to 192.168.1.2, disabled the DHCP server and save the settings, it says. The set

  • Light of Smartphones Trackball blackBerry does not?

    Hi, but I have my first BB 8330 last night... am trying to get used to the features every hour, I have a new question, but my only is right here: The curve trackball is apparently supposed to light up?  Is this correct?  I didn't until a colleague to