on 08-31-2009 6:01 AM
Hello Everybody,
I have a problem with text field which have script characters,for example:
CaCl<sb>2</> (Cacl2 - 2 will be subscript)
MgCl<sb>2</> (MgCl2 -2 will be subscript)
in this example <sb> is for subscript text.
In sapscript or smartforms we can use styles or smartstyles to handle this signs and get the right results.
But how can I handle this in ADOBE?
Thank you all in advance,
ERAN
Hello Bertrand DESSER... ,
Thank you for your answer
Did you try your solution?
Did you read what Chintan Virani wrote? (he gave a link...)
from the link:
Entering Text Module Properties
Prerequisites
You have created a text node in the context and selected the text type Text Module. The text module exists in the system.
Restrictions
The following components are not supported in text modules and are ignored when the form is processed:
● Outline paragraphs
● Paragraph properties Page protection, next paragraph on same page
● Character formats: Superscript and subscript, bar codes
● Special characters
● System fields, such as SFSY-DATE
● Hyperlinks
The following are supported with restrictions:
...
● Tabulators, but not for aligning fields within texts
● SAP characters, but not SAP icons, for example
More information about these restrictions is available in the SAP Notes 894389 and 863893.
But thank you anyway,
ERAN
Edited by: Eran Fox on Sep 14, 2009 2:19 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I solved my problem by Adding 3 more fields to my table :
one for superscript characters
second for baseline characters
third for subscript characters
len = strlen( <LFS_RESULTS>-ZDESC ).
clear: ind, ind2, c1, SB_FLAG, UU_FLAG.
DO len TIMES.
IF ind = len.
exit.
ENDIF.
c1 = <LFS_RESULTS>-ZDESC+ind(1).
if c1 = '<'.
CASE <LFS_RESULTS>-ZDESC+ind(3).
WHEN '<sb' OR '<SB' OR '<sB' OR '<Sb'.
SB_FLAG = 'X'.
UU_FLAG = ' '.
add 4 to ind.
WHEN '<sp' OR '<SP' OR '<sP' OR '<Sp'.
SB_FLAG = ' '.
UU_FLAG = 'X'.
add 4 to ind.
WHEN '</>'.
SB_FLAG = ' '.
UU_FLAG = ' ' .
add 3 to ind.
WHEN OTHERS.
" DO NOTHING!!!
ENDCASE.
else.
IF SB_FLAG = 'X'. " Handle Subscript Line
CONCATENATE lv_super ' ' into lv_super RESPECTING BLANKS.
CONCATENATE lv_baseline ' ' into lv_baseline RESPECTING BLANKS.
CONCATENATE lv_subscript c1 into lv_subscript RESPECTING BLANKS.
CLEAR ind2.
ind2 = ind + 1.
IF <LFS_RESULTS>-ZDESC+ind2(1) = '<'.
SB_FLAG = ' '.
ENDIF.
ELSEIF UU_FLAG = 'X'. " Handle Superscript Line
CONCATENATE lv_super c1 into lv_super RESPECTING BLANKS.
CONCATENATE lv_baseline ' ' into lv_baseline RESPECTING BLANKS.
CONCATENATE lv_subscript ' ' into lv_subscript RESPECTING BLANKS.
CLEAR ind2.
ind2 = ind + 1.
IF <LFS_RESULTS>-ZDESC+ind2(1) = '<'.
UU_FLAG = ' '.
ENDIF.
ELSE. " Handle Baseline Line
CONCATENATE lv_super ' ' into lv_super RESPECTING BLANKS.
CONCATENATE lv_baseline c1 into lv_baseline RESPECTING BLANKS.
CONCATENATE lv_subscript ' ' into lv_subscript RESPECTING BLANKS.
ENDIF.
ADD 1 TO ind. " to go to the next character!
endif.
ENDDO.
in the company i'm working for they are using <sb> for subscript and <sp> for superscript closing tags are the same for both cases </>
ERAN
P.S. I'M using Fixed font like Courier New and the 3 fields are congruent ...
*The following variants will be use for displaying the Chemistry Formulas
DATA: lv_super type string, " For Superscript characters
lv_baseline type string, " For Baseline characters
lv_subscript type string." For Subscript characters
DATA: len type i, " will hold the length of the Chemistry Formula held in ZDESC
ind type i, " indicator of current character
ind2 type i," temp indicator for Superscript or subscript character
c1(1) type c." Current character
DATA: SB_FLAG TYPE FLAG, " Flag for Subscript X = Character will enter subscript line
UU_FLAG TYPE FLAG. " Flag for Superscript X = Character will enter superscript line
CLEAR: lv_super,
lv_baseline,
lv_subscript.
Thank you Chintan Virani,
For opening my eyes...
If this tool is better than sapscript and smartforms, but can't handle simple things, like subscript ,superscript ,etc,
Well... I don't think it is a great tool its rubbish...
Now i will have to go back in time writing sapscript or smartforms
I hope there will be new versions of LIVE CYCLE DESIGNER with solutions for all this problems.
Again, Thank you Chitan and all you guys for the help.
ERAN
P.S. if anyone will find a solution for that problem , please reply to this thread...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Eran,
You can create a text module but things like Subscript are not supported for PDF based forms.
You can check the limitation [here|http://help.sap.com/saphelp_nw2004s/helpdata/en/37/6bb9357a2e4e919bc80232938eb3b7/frameset.htm].
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In adobe forms u can directlly choose the text field , and then set the fone properties using paragraph and font . choose palettes->library->paragraph.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kshitijsaxena ,
I think you didn't understand my question...
I have a table with fields
I get the data from the database
In one of the fields i get text like this: MgCl<sb>2</>
In sapscript or smartforms there are styles
so if you have a style named sb and in the effects frame you checked the subscript checkbox
then the sap script will know to translate the text to subscript for the character 2.
ERAN
Hi Eran,
I don't think you're allow to do multiple font formatting for Adobe Form text field.
We're only allowed to do multiple font formating for the label because actual content of label is coded in HTML format. You try to can view the HTML code for any label with multiple font formating in your form. To view the HTML code, right click on the tab section, where you can open/close Body Pages/ Master Pages/ PDF Preview/ XML source tab, the HTML code is inside XML source tab. Search using the content in Label, you should able to see HTML code similar as below:
<value>
<exData xmlns:xft-xliff="http://www.xfa.org/schema/xfa-xliff/1.0/" contentType="text/html" xft-xliff:id="N2397" xliff:rid="N2397">
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.7.8021.0"><p style="margin-top:5pt;margin-bottom:5pt;text-indent:-17.85pt;tab-interval:0.5in;tab-stops:left 0.25in;font-weight:bold;text-decoration:none">Different font formatting 1 </p><p style="margin-top:5pt;tab-interval:0.5in;tab-stops:left 0.25in;text-decoration:none"> Different font formatting 2 <span style="xfa-spacerun:yes"> </span><span style="font-weight:bold"> Different font formatting 3 </span> Different font formatting 4 <span style="xfa-spacerun:yes"> </span><span style="font-weight:bold"> Different font formatting 5 </span>.</p><p style="margin-bottom:5pt;tab-interval:0.5in;tab-stops:left 0.25in;text-decoration:none"> Different font formatting 6 </p></body>
</exData>
</value>
Hope this helps.
Best regards,
Xiang Li
Edited by: xiangli heah on Sep 2, 2009 8:29 AM
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.