[CS5][JS] Add Glyph for special 'e' characters?
Hello,
I've got an InDesign script that adds text to a text frame like so:
myTextFrame.insertionPoints[-1].contents = ' The café...';
The problem is that InDesign renders the acute accent 'e' character incorrectly and inserts other special characters. I think I should be able to use glyphs, but I'm not sure how to do it within a script? Is there an easy way to insert that glyph character?
Many thanks in advance!
-Lloyd
Hi,
As John suggested, it is almost certainly a character encoding issue at script-editing level. I have similar troubles when I deployed my first scripts for Mac + Win platforms—there was always users who got degenerate UTF8. Since I'm not an expert in cross-OS character encoding, I decided to never use non-ASCII characters in my script. This is a radical solution, I admit, but my scripts never more displayed weird © strings and so.
Any Unicode string can be easily expressed in ASCII JavaScript using "\xHH" or "\uHHHH"—which is simpler than String.fromCharCode(0xHHHH).
E.g.:
myTextFrame.insertionPoints[-1].contents = "The caf\xE9...";
Etc.
@+
Marc
Similar Messages
-
Urgent: need to get support for ß, Ö special german characters
Hi I need to have support for this characters, how can I do this I saw I could do this on the client or directly on the database, the easiest way will be my way so if someone knows how to do this I wait for an answer.
Hello,
Why start a new post? I thought I was helping you in:
How to have dutch nls support in oracle 10g -
Xpose jquery gallery add-on for dreamweaver cs5.5
Hi,
xpose jquery gallery add on for dreamweaver cs5.5 not working within internet explorer when website uploaded
The current slide index file seems to be the issue, but not sure where or how to fix this...any ideas gratefully recieved. thanks in advanceHi,the webpage in question is http://www.blackcatbrides.co.uk, then the gallery is stored within the collections page.
Again thanks for your help in advance
Here is also the script within dreamweaver
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Your Wedding</title>
<link href="stylesheet/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../includes/jQueryGallery/gallery.extend.js"></script>
<script type="text/javascript" src="../includes/jQueryGallery/jQueryGallery.js"></script>
<script type="text/javascript" src="../includes/jQueryGallery/jQueryGallery1.js"></script>
<link href="../includes/jQueryGallery/jQueryGallery1.css" rel="stylesheet" type="text/css" />
<link href="../includes/jQueryGallery/jQueryGallery1_lightbox/lightbox.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div class="header">
<object type="application/x-shockwave-flash" data="images/57.swf" width="1000" height="560">
<param name="movie" value="images/57.swf" />
</object>
</div>
<div class="clear"></div>
<div class="workzone">
<div class="workzone-left">
<div style="padding:0 15px 20px 15px;">
<h1 class="inner">Our Collections</h1>
<p> </p>
<div id="jQueryGallery1Container" class="jQGalleryC">
<div id="jQueryGallery1" class="jQueryGallery"></div>
<div id="jQueryGallery1_thumbscroll_in"></div>
<div id="jQueryGallery1_caption_in">Image caption.</div>
<div id="jQueryGallery1_subcaption_in">Image subcaption.</div>
<div id="jQueryGallery1_currentslide_in">{index}/{total}</div>
<div id="jQueryGallery1_progressbar_in"></div>
<div id="jQueryGallery1_controls_in">
<div id="jQueryGallery1_playpause_in">
<div class="play"></div>
<div class="pause"></div>
</div>
<div id="jQueryGallery1_fullscreen_in"></div>
<div id="jQueryGallery1_albums_in"></div>
</div>
<div id="jQueryGallery1_albumsContainer_in">
<ul>
<li ><a><img src="" width='376' height='120'/> <span class="title" style="display:block">Title of album</span> <span class="subtitle" style="display:block">Description of album</span></a></li>
<li style="padding-right:0px;"><a><img src="" width='376' height='120'/> <span class="title" style="display:block">Title of album</span> <span class="subtitle" style="display:block">Description of album</span></a></li>
<li ><a><img src="" width='376' height='120'/> <span class="title" style="display:block">Title of album</span> <span class="subtitle" style="display:block">Description of album</span></a></li>
<li style="padding-right:0px;"><a><img src="" width='376' height='120'/> <span class="title" style="display:block">Title of album</span> <span class="subtitle" style="display:block">Description of album</span></a></li>
<li style="padding-bottom:0px;"><a><img src="" width='376' height='120'/> <span class="title" style="display:block">Title of album</span> <span class="subtitle" style="display:block">Description of album</span></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="footer">
<div class="footer-left"><a href="privacy.html">Privacy Statement</a></div>
<div class="footer-right"> © Black Cat Brides. All rights reserved </div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</body>
</html> -
Checking for Special Characters
I need to check if a textbox in my form containes special characters (entered by user). If there are any, I need to display an error message.
I have written a function but it's not working.
here's my function:
function checkForSpecialChracters(oFiled)
var userInput = oFiled.rawValue; // take the String entered by the user
var iChars = "@#$%^&*+=-[]\\\';,./{}|\":<>?~_";
for (var i = 0; i < userInput.length; i++)
if (iChars.indexOf(userInput.charAt(i)) != -1) {
xfa.host.messageBox("Please check for special characters. The following characters are not allowed: @#$%^&*+=-[]\\\';,./{}|\":<>?~_ ", "Error Message", 3);
// Change the color of the field
oFiled.fillColor = "255,100,50";
Any help would be greatly appreciated.
Thank you!Paul,
It is working now. I don't know what I might have changed.
Here's my final function (It works!):
function checkForSpecialChracters(oFiled)
var userInput = oFiled.rawValue; // take the String entered by the user
var iChars = "@#$%^&*+=-[]\\\';,./{}|\":<>?~_";
var hasSpecialCharacter = false;
for (var i = 0; i < userInput.length; i++)
//app.alert("Value is: " + userInput.charAt(i));
if (iChars.indexOf(userInput.charAt(i)) != -1)
hasSpecialCharacter = true;
break;
} // end if
} // end For loop
if (hasSpecialCharacter)
// Change the color of the field
oFiled.fillColor = "255,100,50";
xfa.host.messageBox("Please check for special characters. \n\nThe following characters are not allowed:\n\n @#$%^&*+=-[]\\\';,./{}|\":<>?~_ ", "Error Message", 3);
else if (!hasSpecialCharacter)
oFiled.fillColor = "255,255,255"; -
Text edit- Keystrokes for special characters
They've changed the keystroke I use to use for making a checkmark. It was 'Option v'. Now it's not. Is there a chart somewhere showing what teh keystrokes are now for special characters? Thanks so much for any help.
-ThomOkay, I found this, http://support.apple.com/kb/PH10758?viewlocale=en_US . Which gives me the Edit/Special Characters. But I still do not find any keystrokes to make my checkmark.
-
how to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?
kindly recommend me any best one and tel me step by step how i will add more plugins n filtersA Plug_in normally come with an installer or install instructions. Check the documentation for the plug-in you trying to install. It sounds like you don't know what plug-ins you want to install. In that case you don't need to install any. At some point you may read about a plug-in and what it can do and feel you have a need for it. Then you will have a reason to install a plug-in that is not installed by default. There may also be a cost involved most worthwhile plug-ins are not free.
Adobe Optional Plug_ins downloads are Plugins Adobe want to remove from Photoshop and no longer install by default. Also at some point in time these will no longer install into the current Photoshop for Adobe will remove feature or interfaces the use. For example the CS5 optional plugins will install in Windows CS6 perpetual version 13.0.1.3 but not in Subscription version 13.1.2 or perpetual Mac version 13.0.6 fot its 64bit only and the Mac CS5 optional plug-in for Picture package is only a 32bit plug-in.
You will need to keep and maintain old versions of Photoshop if Adobe remove features you use in new versions of Photoshop. -
PDF generation for Non English Characters from ADF
Hi
We are using below piece of code to generate pdf from ADF Managed bean. It works fine. However for non English Characters(eg. Japanese,Vietnamese,Arabic) it puts
I got few blogs
https://blogs.oracle.com/BIDeveloper/entry/non-english_characters_appears
However we are not using BI Publisher product . We are using its API's
Can anyone tell where do we need to setup fonts within ADF or Weblogic or Server ?
Input Parameters are
a)xml Data
b)InputStream ie rtf Template
import oracle.apps.xdo.XDOException;
import oracle.apps.xdo.template.FOProcessor;
import oracle.apps.xdo.template.RTFProcessor;
public static byte[] genPdfRep(String pOutFileType,byte[] pXmlOut ,InputStream pTemplate)
byte[] dataBytes = null;
try {
//Process RTF template to convert to XSL-FO format
RTFProcessor rtfp = new RTFProcessor(pTemplate);
ByteArrayOutputStream xslOutStream = new ByteArrayOutputStream();
rtfp.setOutput(xslOutStream);
rtfp.process();
//Use XSL Template and Data from the VO to generate report and return the OutputStream of report
ByteArrayInputStream xslInStream = new ByteArrayInputStream(xslOutStream.toByteArray());
FOProcessor processor = new FOProcessor();
ByteArrayInputStream dataStream = new ByteArrayInputStream((byte[])pXmlOut);
processor.setData(dataStream);
processor.setTemplate(xslInStream);
ByteArrayOutputStream pdfOutStream = new ByteArrayOutputStream();
processor.setOutput(pdfOutStream);
byte outFileTypeByte = FOProcessor.FORMAT_PDF;
processor.setOutputFormat(outFileTypeByte); //FOProcessor.FORMAT_HTML
processor.generate();
dataBytes = pdfOutStream.toByteArray();
} catch (XDOException e) {
e.printStackTrace();
return dataBytes;
Appreciate your help.
Thanks,
AbhijitFonts are defined in the template you use to generate the pdf. Your application add the data and both is processed yb the FOP processor. Now there are two possible causes of the '???' :
1. the data you sent to the template contains the '???' already
2. the template can't digest the data (the special characters) and puts '???' in the pdf.
Before going on you have to find out which one is your problem. The 2nd is the problem you better ask this in a FOP forum as you have to solve it by changing the template.
Timo -
How to escape special xml characters in ALSB
Hi
Can some one tell me how to replace special xml characters < ,> with < and >
I have xml node like below
<payload>
<RatingDetails>
<Action>Add</Action>
</payload>
Using fn-bea:serialize i got xml string as
<payload><RatingDetails><Action>Add</Action></payload>
I want output as below
<payload><RatingDetails><Action>Add</Action></payload>
Appreciate your help
Thanks in Advancewhen i use fn-bea:serialize my request xml node converted to xml string.To that string i had escaped special xml characters.
Original request:
<abc>
<a1 >123</a1>
<payload>
<d>345</d>
<e><678></e>
</payload>
</abc>
After using serialize it became as below (everything in one line)
<abc><a1>123</a1><payload><d>345</d><e><678></e></payload></abc>
then i used java callout for replacing special xml chars in payload element,
now my request is
<abc><a1>123</a1><payload><![CDATA[& lt;d& gt;345& lt;/d& gt;& lt;e& gt;& lt;678& gt;& lt;/e& gt;]]></payload></abc>
i dont want my payload data to be enclosed within CDATA but by default i am getting it when i run my xquery for generating request.
This might be because & will not get parsed in xml parser so enclosing evrything in CDATA.
Need solution to remove CDATA and send the payload data as it is.. -
Symbol Add-on for FrameMaker 10
Hi! Does anyone know of a symbol add-on for Framemaker 10? I used to have one for FrameMaker 7.1 and it of course disappeared when
I upgraded to 10. In the meantime, does anyone know of a cheat sheet for the location of symbol codes?
Thanks!
CindyCindy,
There is a toolbar button in the Quick Access toolbar for a number of symbols:
There also is a table in the FM Help under Keyboard Shortcuts > Entering special characters
(see: http://help.adobe.com/en_US/framemaker/using/WSd817046a44e105e21e63e3d11ab7f7862b-7ff0.htm l)
You can also use the built-in Character Palette (File > Utilities > Character Palette...) to directly enter the symbols available in a specific font.
(see: http://help.adobe.com/en_US/framemaker/using/WS51DA75D7-E518-407d-8F1E-C3160938061B.html#W SE4005853-39F6-472d-B81D-5647D0686F86) -
Where can I find 3D materials add-ons for Photoshop CC 2014?
Where can I find 3D materials add-ons for Photoshop CC 2014? When I pull down the 3D menu to Get More Content, it takes me here: Downloadable 3D content | Photoshop.com. When I download and install the "Versatile materials", Adobe Extension Manger tells me I am installing "Material sets for Adobe Photoshop CS5 Extended", which turns out to be the same exact set that I originally had in PS CC 2014. I also search here: https://creative.adobe.com/addons to no avail.
Anybody know where I can find 3D materials that are more current, or at least different from what I have already?Where can I find 3D materials add-ons for Photoshop CC 2014? When I pull down the 3D menu to Get More Content, it takes me here: Downloadable 3D content | Photoshop.com. When I download and install the "Versatile materials", Adobe Extension Manger tells me I am installing "Material sets for Adobe Photoshop CS5 Extended", which turns out to be the same exact set that I originally had in PS CC 2014. I also search here: https://creative.adobe.com/addons to no avail.
Anybody know where I can find 3D materials that are more current, or at least different from what I have already? -
Send purchase order via email (external send) with special Czech characters
Hi all,
I am sending a purchase order created with ME21N via email to the vendor using "external send".
The mail is delivered without any problems, PO is attached to the mail as PDF file.
Problem is that special Czech characters as "ž" or "u0161" are not displayed, a "#" (hash) appears instead.
This problem occurs when language for PO output = EN.
Tests with language = CS worked out fine, but the whole form incl. all texts are in Czech as well; so no valid solution since it needs to be in English.
We checked SAPCONNECT configuration and raised note 665947; this is working properly.
When displaying the PO (ME23N) special characters are shown correctly as well.
Could you please let me know how to proceed with that issue?!
Thanks.
FlorianHi!
No, it's not a Unicode system.
It is maintained as:
Tar. Lang. Lang. Output Format Dev. type
Format
PDF EN English PDF1
Using this option, character "ž" was not displayed correctly, but "Ú" was ok.
All other Czech special characters are not tested so far.
Thanks,
Florian
Edited by: S. SCE - Stock Mngmnt on Aug 14, 2008 10:19 AM -
Importing WORD document with special regional characters in RoboHelp X5
Hello,
i have a problem, when im importing a *.doc document. The
document is written in slovene and it contains special regional
characters. Here is the deal:
I was using RoboHelp 4.0 before and i had this same problem.
What i did was, when i added a new topic (imported *.doc file) into
existing project and the WebHelp was generated, in the web browser
i clicked the last added topic and opened a source code, where i
changed the charset from 1252 to 1250. That enabled the special
characters to be viewed correctly. When i imported some additional
topics and generated the WebHelp again, the program somehow "saved"
the 1250 setting in the previous topics and the characters were
correctly shown. I had to adjust 1250 only in the new topics, that
were added before the last generate.
When i try to do the same in RoboHelp X5, this doesnt work.
Program doesnt "remember" the 1250 setting and it always generates
with 1252 character setting. Which is a problem, because there are
a lot of topics and i would have to change the character setting
for every topic/doc document i added.
What can i do ?
Thanks in advanceHello Tiesto_ZT,
Welcome to the Forum.
I have no experience of using other languages in RH, but this
problem was discussed in
Thread.
Check it out and post back if it doesn't fit your needs.
Hope this helps (at least a bit),
Brian -
Special/Swedish characters in an AXL request
Hello,
I am developing an application that is adding a user to the Call Manager (4.1). When I try to add a name with swedish characters (???) the CCM changes them to question marks "?". I have tried adding the swedish characters unicode encoded, ? = ö, but then I get a AXL syntax error.
Adding the names with swedish characters using the normal CCM interface works fine.
Any idea what I could be doing wrong?
Thanks in advance
TomasI believe it would be helpful if you share the code that writes the axl requests (I asked which ones you used.. you did not reply so far).
Here's an addUser request that uses an ? and a ? and my code - based on the java code from the sdk to make axl requests- has no trouble sending it.. and the user is created with the proper characters:
http://www.cisco.com/AXL/1.0" xsi:schemaLocation="http://www.cisco.com/AXL/1.0 http://gkar.cisco.com/schema/axlsoap.xsd" sequence="1234">
H?nsliB?nzlihbue1234512345
However, if you do a getuser, and use the same code to send / receive requests, the result will be distorted.. that's because data from the dc directory comes back UTF-8 encoded, whereas data from the database comes back as Latin (that's the default character set on your and my computer).. since the request can be sent without making any changes, that means you don't need UTF-8 encoding.. you should not do anything with the encoding, unless your default character set isn't Latin1 (it's the default throughout Europe.. even if you have an English OS, as long as the regional settings are for a European country, you'll have the proper character set..
Don't forget though: getXYZ comes back latin encoded if the data is from the SQL server, and UTF-8 encoded if it's from the DC directory.. so you have to tell the stream reader that the data is utf-8 encoded when you do a getuser (at least for ccm 4.1.3). -
Special ALT Characters on TM2T
Searched "Special Characters" in the board but did not see.
Was wondering if there was any easy shortcut for typing the characters normally displayed by pressing "ALT" and the four-digit code. I did see the "FN" plus arrow keys for navigating through pages which was very useful, hoping for something similar. Thanks for any assistance which can be provided.CorkyG wrote:
In order to execute those ASCII/ANSI codes, you must have NumLock on. The involves the Fn (blue) key. With it on, you then use alt = the small numbers located on the lower right coner of keys to the right of the Trackpoint head.
This is not easy. I prefer to run charmap.exe, minimize it to the task bar, and copy/paste the characters I need.
I don't know if the old standard way (Num Lock On, ALT+nnn) would work with an external full keyboard.
That would be fine if the built in keyboard actually had a number lock key and the small function numbers and characters on the letter keys. A design flaw as far as I am concerned and a total pain without this functionality.
The other key that is missing is the Windows context menu key to the left of the right Ctrl key - I constantly use this (or did). Instead we have a PrtSc key.
I'll be asking out IT department to find me another laptop. -
Special Unicode characters in RSS XML
Hi,
I'm using an adapted version of Husnu Sensoy's solution (http://husnusensoy.wordpress.com/2007/11/17/o-rss-11010-on-sourceforgenet/ - thanks, Husnu) to consume RSS feeds in an Apex app.
It works a treat, except in cases where the source feeds contain special unicode characters such as [right double quotation mark - 0x92 0x2019] (thankyou, http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml)
These cases fail with
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00217: invalid character 8217 (U+2019) Error at line 19
Any ideas on how to translate these characters, or replace them with something innocuous (UNISTR?), so that the XML transformation succeeds?
Many thanks,
jd
The relevant code snippet is:
procedure get_rss
( p_address in httpuritype
, p_rss out t_rss
is
function oracle_transformation
return xmltype is
l_result xmltype;
begin
select xslt
into l_result
from rsstransform
where rsstransform = 0;
return l_result;
exception
when no_data_found then
raise_application_error(-20000, 'Transformation XML not found');
when others then
l_sqlerrm := sqlerrm;
insert into errorlog...
end oracle_transformation;
begin
xmltype.transform(p_address.getXML()
,oracle_transformation
).toobject(p_rss);
exception
when others then
l_sqlerrm := sqlerrm;
insert into errorlog....
end get_rss;My environment:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_CHARACTERSET WE8ISO8859P1
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSEenvironment
Oracle 10g R2 x86 10.2.0.4 on RHEL4U8 x86.
db NLS_CHARACTERSET WE8ISO8859P1
After following the following note:
Changing US7ASCII or WE8ISO8859P1 to WE8MSWIN1252 [ID 555823.1]
the nls_charset was changed:
Database character set WE8ISO8859P1
FROMCHAR WE8ISO8859P1
TOCHAR WE8MSWIN1252
And the error:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00217: invalid character 8217 (U+2019)
was no longer generated.
A Unicode database charset was not required in this case.
hth.
Paul
Maybe you are looking for
-
How to modify a specific class in jar file ?
I've downloaded a jar file for applet, the jar file works fine... but when I extract a specific class file from the jar file and just recompie it from my IDE (Eclipse) without even making any change and then compress again jar class files including t
-
Access to the Row Number in a Query Result
Hi everyone! I have this query: select s.cod_score, ROW_NUMBER() OVER (ORDER BY s.cod_score) AS num from score s where s.categoria.cod_categoria='001' and s.gara.cod_gara='25251'; that returns: COD_SCORE | NUM 00001 1 00002 2 00007 3 0000
-
Hi, I'm trying to hide the url passed in a jsp. This url calls a Report. my url is like: http://pcias.ferroplast.es:7778/reports/rwservlet?destype=cache&report=e:\informes\todas_reclamaciones.rdf&desformat=HTMLCSS&server=rep_pcias&userid=scott/tiger@
-
OS X Upgrade DVD not recognized
I just put XP on my old MacBook. Everything went OK, except when I put in my 10.5 DVD it doesn't get recognized by Windows! Is this possibly because it's an "Upgrade" DVD? The original system software DVD that came with the MacBook is 10.4.6., and XP
-
FCE4 - can I convert HD footage to Standard Definition to put on a DVD
My Panasonic HD camcorder will only record in HD, with no option for Standard Def. Can FCE4 convert HD footage so I can convert it as if SD and then transfer to DVD (rather than Bluray Disc). Many thanks Matt