Translation Function?
Can documents be translated
The language of PDF files cannot be translated by any software or service from Adobe, free or subscription.
Similar Messages
-
Hi
in XSQL i am one getting one row like this
<REASON_FOR_REJECTION>1.Overhead line is not existing in front of the premises,2.The distance from the pole to the serice is more than 30 meters.,3.Another service is existing in the same premises with arrears.</REASON_FOR_REJECTION>
In the above String for every comma i want to put <br>
the output should come like this:
1.Overhead line is not existing in front of the premises
2.The distance from the pole to the serice is more than 30 meters.
3.Another service is existing in the same premises with arrears
i have used translate function like this <xsl:value-of select="translate($REASON_FOR_REJECTION,',',<br>)'"/>
but i couldnt get proper result;how can i do this ??? PLZZ HELPHi Jayant,
please have a look at the following link: http://help.sap.com/saphelp_nw04s/helpdata/en/ae/48e7428d877276e10000000a1550b0/frameset.htm
Regards,
Christophe -
Using translate function to correct character set problem....
I have a table(TBL_STOCK) on Oracle XE.
Rows come from sql server 2005 with a trigger on sql server table via the linked server.
But there is a character set problem with some character like İ,Ş,Ğ.
They change to Ý,Þ,Ð. in Oracle.
How can i correct these ? Do you suggest the TRANSLATE function ?
What do u think, if i create an After Insert trigger on Oracle table(TBL_STOCK) and convert these character using the Translate function when they inserted from sql server.
Anyone have any other ideas that can be more efficient. Any thoughts appreciated.
Thanks in advance.
Adam
PS:The NLS_CHARACTERSET of Oracle is AL32UTF8.It is sql server 2005 and Collation is SQL_Latin1_General_CP1_CI_AS
-
Using Translate() function of XSLT ...
Hi guys
I have an xml document that i am converting into an html document using XSLT. I need to replace the XML new lines(
) with html new lines (<br>) while the xslt transform takes place on my xml document.
For this I have found the translate function of XSLT but I need to use it on a specific tag and not all the tags in the xml document.
<ExampleTag>
1 first line
2 second line
3 third line
</ExampleTag>
translate(string, replaced_text, replacement_text)
so I need to get my tags value in the variable string which is:
1 first line
2 second line
3 third line
and replaced_text: '
' and replacement_text: '<br>'
but the problem is XSLT syntax is so bad that i just cant devote enough time to learn it. Any suggestions for the syntax guys?? an example would be extremely useful.
cheers :)Hey
after a bit of struggle came up with this:
<xsl:template match="ExampleTag">
<xsl:variable name="string" select="."> </xsl:variable>
translate(string, "
", "</br>" )
<xsl:value-of select="$string"/>
</xsl:template>
but its not working :(
any suggestions?? -
Problem with translate function (C++ parser v9)?
When upgrading to v9 of the C++ parser, we notice a problem with the translate function within xsl stylesheets. Take the following snippet :-
<StartDt><xsl:value-of select="translate(string(CheckInDate),'-','')"/></StartDt>
Previously, this statement would strip the '-' chars from our input dates of the form 2002-05-02 to give 20020502. It now does not replace the '-' chars which causes our transformed output to be invalid. We have many developed and tested xsl's which now don't work.
When we revert to v8, the same xsl's work correctly.
This happens on all platforms (Windows/Linux/Solaris).
Anyone else noticed this?
Regards,
MikeIt worked for me as well.
Use DUMP to find out the char code used for é and ú and try to replace these character codes.
On my system it is 130 and 163
SELECT TRANSLATE('héllú wúrld', 'éú', 'eu'),
dump('héllú wúrld'),
TRANSLATE('héllú wúrld', chr(130)||chr(163), 'eu')
FROM dual;
hellu wurld
Typ=96 Len=11: 104,130,108,108,163,32,119,163,114,108,100
hellu wurld -
hi,
How to use Translate function in VC? Please tell me with one exmple.
Points will be given to correct solution.
Cheers,
JayantHi Jayant,
please have a look at the following link: http://help.sap.com/saphelp_nw04s/helpdata/en/ae/48e7428d877276e10000000a1550b0/frameset.htm
Regards,
Christophe -
Using translate function for one to many character translation
Hi friends!
Can anybody tell me whether it is possible to use built in translate function for converting some text from a one alphabet to another one, if these alphabets are of different length. Something like
SELECT TRANSLATE('текст',
'АБВГДЕЕЖЗИКЛМНОПРСТУФХЦЧШЩЭЮЯ',
'ABCGDEF"*GH*"HIJKLMNOPQRSTYVWXYZ') FROM dual;
Or there is another function for this, or it is impossible?
ThanksHi,
Maybe you could use REPLACE just once, and then TRANSLATE the rest?
Something like:
SELECT TRANSLATE(REPLACE('ABcDE', 'c', 'xz'),
'ABCDE',
'abcde') from dual;
TRANSLATE(REPLACE('ABCDE','C','XZ'),'ABCDE','ABCDE')
abxzde
1 row selected.Regards
Peter -
Encrypt/Decrypt using REPLACE/TRANSLATE function
Hi,
Can someone please provide me any procedure/function which encrypts/decrypts a string using REPLACE/TRANSLATE function?
Thanks
Dinakarexample with TRANSLATE:
CREATE OR REPLACE function temp_encrypt (p_value IN VARCHAR2)
RETURN VARCHAR2 IS
BEGIN
RETURN(TRANSLATE(p_value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'BCDEFGHIJKLMNOPQRSTUVWXYZA'));
END;
CREATE OR REPLACE function temp_decrypt (p_value IN VARCHAR2)
RETURN VARCHAR2 IS
BEGIN
RETURN(TRANSLATE(p_value, 'BCDEFGHIJKLMNOPQRSTUVWXYZA', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'));
END;
SQL> SELECT temp_decrypt('MY TEST') FROM dual;
TEMP_DECRYPT('MYTEST')
LX SDRS
SQL> SELECT temp_encrypt('LX SDRS') FROM dual;
TEMP_ENCRYPT('LXSDRS')
MY TESTyou may combine this with REPLACE() ... -
How to translate Function text matching to fucntion code?
I try to translate Function text matching to Function code in GUI status?
Is there any way you know how to solve it?Do you want to get Function code related to function Text in GUI Status programatically?
-
I had a translate function in my tool bar when I updated firefox it went awa
had a translate function in the toolbar, when I updated firefox it went away and I cannot figure out how to get it back. Basically ifyou were on a e mail or website that was in a different language you just hit this and it translated it no highlighting no cut and paste HELP I am an american living in a foreign country and am desperate
That was probably from the "Google Toolbar".
:see https://support.mozilla.com/questions/837473
You can avoid the overhead, care and feeding of extensions and other problems of extensions with a '''bookmarklet''' which has a '''keyword''' to invoke it directly from the Location Bar.
'''Name:''' tr: translate from (fr, de, etc.)
:'''Location:''' javascript:location='http://translate.google.com/translate?u='+encodeURIComponent(location);
:'''Keyword:''' tr:
:'''Description:''' Test page http://web.de/ and http://web.nl/ -
Translate() function in an xpath predicate
I'm trying to use the translate() function in an xpath predicate, and it appears to be having no effect. For instance, I have the following XML document (abbreviated for clarity):
<metadata>
<baseObject>
<PublicationTime>2003-06-30T21:45:56Z</PublicationTime>
</baseObject>
</metadata>
The following xpath expression returns no nodes:
metadata[translate(baseObject/PublicationTime, "-:TZ", "") = "20030630214556"]
But this next expression does return a node:
metadata[translate(baseObject/PublicationTime, "-:TZ", "") = "2003-06-30T21:45:56Z"]
It appears to me that the translate function is not removing the -, :, T, and Z characters as would be expected. Am I misunderstanding the usage of the translate function, making an error in my xpath expression, or is there some other explanation?
Thanks.
BrianBrian
This looks like a bug in the implementation of translate
Filed as bug 3036042 -
Office 2010 build-in translate function not work
Hi there,
The Office 2010 translate function is not work on user's desktop, word/outlook/excel, none of them working. It was working before. at that time, I can simply select a word, right click and then select translate, from the right side pane, I can select from
English to Chinese, and then give me the detail translation information of the word. But suddenly, this function was not working anymore and we did not change anything on MS Office. When I did the same steps, it shows no results were found.
When I check the translation options, it shows English to Chinese is selected under available language pairs. The weird thing is, when I change the translation setting to from Dutch to Chinese, it translated to Chinese with the very simple result. so any idea
to get it fixed?
Regards,
DavidHi David,
Please first make sure your Office 2010 is fully patched. In addition, we can try to run a repair of your Office installtion to check the result:
http://office.microsoft.com/en-us/powerpoint-help/repair-office-programs-HA010357402.aspx
Thanks,
Steve Fan
TechNet Community Support -
Translate function How it Work??
Hi,
In Translate function I understood for single character replacement.
But Multiple and encript i am unable to got it.
pls guide me.
SELECT TRANSLATE('comma,delimited,list', ',', '|')
FROM dual;
SELECT TRANSLATE('CAG-TTT-GAC-ACA-TGG-ATC', 'ACGT', 'GATC') DNA
FROM dual;
SELECT TRANSLATE('So What', 'ah', 'e')
FROM dual;
SELECT TRANSLATE('"Darn double quotes "', 'A"', 'A')
FROM dual;
SELECT TRANSLATE('this is a secret',
'abcdefghijklmnopqrstuvxyz', '0123456789qwertyuiop[kjhbv')
FROM dual;
Bold script I am unable to understood. pls guide me.
Regards,
Venkat.-- SELECT TRANSLATE(SUBSTR('venkat',1,4),
-- 'e0123456789',
-- 'R') from dual;
-- In the string -> SUBSTR('venkat',1,4) = 'venk'
-- Convert all occurrences of "e" to "R"
-- Convert all occurrences of "0" to "" i.e. to NULL
-- Convert all occurrences of "1" to "" i.e. to NULL
-- Convert all occurrences of "2" to "" i.e. to NULL
-- Convert all occurrences of "3" to "" i.e. to NULL
-- Convert all occurrences of "4" to "" i.e. to NULL
-- Convert all occurrences of "5" to "" i.e. to NULL
-- Convert all occurrences of "6" to "" i.e. to NULL
-- Convert all occurrences of "7" to "" i.e. to NULL
-- Convert all occurrences of "8" to "" i.e. to NULL
-- Convert all occurrences of "9" to "" i.e. to NULL
-- Let the other characters remain as they are
test@ora>
test@ora> SELECT TRANSLATE(SUBSTR('venkat',1,4),'e0123456789','R') from dual;
TRAN
vRnk
test@ora>
-- SELECT TRANSLATE(SUBSTR('venkat',1,4),
-- 'efghijklmno',
-- 'R') from dual;
-- In the string -> SUBSTR('venkat',1,4) = 'venk'
-- Convert all occurrences of "e" to "R"
-- Convert all occurrences of "f" to "" i.e. to NULL
-- Convert all occurrences of "g" to "" i.e. to NULL
-- Convert all occurrences of "h" to "" i.e. to NULL
-- Convert all occurrences of "i" to "" i.e. to NULL
-- Convert all occurrences of "j" to "" i.e. to NULL
-- Convert all occurrences of "k" to "" i.e. to NULL
-- Convert all occurrences of "l" to "" i.e. to NULL
-- Convert all occurrences of "m" to "" i.e. to NULL
-- Convert all occurrences of "n" to "" i.e. to NULL
-- Convert all occurrences of "o" to "" i.e. to NULL
-- Let the other characters remain as they are
test@ora>
test@ora> SELECT TRANSLATE(SUBSTR('venkat',1,4),'efghijklmno','R') from dual;
TR
vR
test@ora>HTH
isotope
I thought the explanation was clear enough the first time.
what is the Mistake in my script.There is no mistake in your script.
There is no mistake in the output spewed by Oracle.
It is as per documentation.
Check the documentation to get a better grasp of this concept:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions196.htm#SQLRF06145
Message was edited by:
isotope
Message was edited by:
isotope -
How to translate function codes from GUI-status into other language ?
Hello experts,
I've a programm called mrs - multi resource scheduling.
This programm has texts in english and german.
Now I want to translate the text also in italian.
When I opne the programm in se80, in path GUI-status
there are the ui-elements (Function codes).
When I open them in english, I get the texts in english, when
I open them in german , I get the texts in german.
Openeing in italian shows me the english texts.
Changing them into italian I get message:
You can only maintain the object in modification
lang. German (DE) in this system
If I proceed in translating the german text in italian, I get italian texts instead of german.
Some ideas ?
Thanks GerdUse [SE63|https://www.sdn.sap.com/irj/scn/advancedsearch?query=se63&cat=sdn_all].([Translating Objects Directly|http://help.sap.com/saphelp_nw04/Helpdata/EN/41/71601b3ab0f34a8e00aa01338c68f3/content.htm]) else work on a system where italian language is installed.
Regards -
XQuery translate() function not working correctly?
The following XQuery fragment
return
xf:translate($product/@description, "®", "®")
where
$product/@description
contains
Complete Choice® Plan
returns
Colete Choice® Pln
not, as expected
Complete Choice® Plan967660 wrote:
Hi,
Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
this returns the 31st of may. which is incorrect.
however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
btw, i'm working in sqlplus - although developer has some odd results too.
thanks alot,
nick'day' doesn't trunc to the beginning of the day. It truncates to the first day of the week: in your case 31st May.
'ddd' truncates to the beginning of the day.
So, leaving the second parameter out defaults to 'ddd' not 'day'. -
LONG column and translate function
I want to get the default values of columns through all_tab_columns.
I have written the query :
select a.COLUMN_NAME, translate(a.DATA_DEFAULT,'''',' ')
from all_tab_columns a
where a.TABLE_NAME like 'T_MPR_MBT'
But it gives the following error:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
Is there a way to convert long to string?
Thanks
Ameya.SQL> describe long_tab;
Name Null? Type
COL1 NUMBER
COL2 LONG
COL3 VARCHAR2(40)
SQL> select * from long_tab;
COL1 COL2 COL3
1 1st value for long characters 1st value for long characters
2
3 3rd value for long characters 3rd value for long characters
SQL> select * from long_tab
2 where nvl(col2,'x') = nvl(col2,'x');
where nvl(col2,'x') = nvl(col2,'x')
ERROR at line 2:
ORA-00932: inconsistent datatypes: expected LONG got CHAR
-- we know that we cannot compare a column with long datatype to other column that is not a long datatype.
-- we have to create some custom function to convert the long into a character type.
SQL> CREATE OR REPLACE Function convert_long_to_char( pTableName in varchar2,
2 pColumnName in varchar2,
3 pRowId in rowid ) return varchar2 As
4 vCursor integer default dbms_sql.open_cursor;
5 vN number;
6 vLongVal varchar2(4000);
7 vLongLen number;
8 vBuflen number := 4000;
9 vCurPos number := 0;
10 begin
11 dbms_sql.parse( vCursor,'select ' || pColumnName || ' from ' || pTableName ||
12 ' where rowid = :x',
13 dbms_sql.native );
14 dbms_sql.bind_variable( vCursor, ':x', pRowId );
15
16 dbms_sql.define_column_long(vCursor, 1);
17 vN := dbms_sql.execute(vCursor);
18
19 if (dbms_sql.fetch_rows(vCursor)>0) then
20 dbms_sql.column_value_long(vCursor, 1, vBuflen, vCurpos ,
21 vLongVal, vLongLen );
22 end if;
23 dbms_sql.close_cursor(vCursor);
24 return vLongVal;
25 end convert_long_to_char;
26 /
Function created.
SQL> select * from long_tab
2 where nvl(convert_long_to_char('long_tab','col2',rowid),'x') = nvl(col3,'x');
COL1 COL2 COL3
1 1st value for long characters 1st value for long characters
2
3 3rd value for long characters 3rd value for long characters
SQL>
-- in your case it would something like:
select a.COLUMN_NAME,
translate(convert_long_to_char('all_tab_columns','DATA_DEFAULT',rowid),'''',' ')
from all_tab_columns a
where a.TABLE_NAME like 'T_MPR_MBT';
Maybe you are looking for
-
How to reinstall Adobe Reader (E6)
I uninstalled by mistake Adobe Reader on my E6. Does anybody know how can I get it back? The trial version on QuickOffice website says I have to install the main package first (?), I've tried to restore it through the backup I had made on PC and on t
-
Listing Skype Number in local telephone directory ...
What is the process for getting a listing in the local (Ireland, in my case) telephone directory (phonebook) using my Skype Number (which is a geographic Dublin number, where I reside). The publishers of the directory (which is available online and d
-
MM_XSLTransform.class.php
I am trying to successfully consume an outside rss feed and seem to be running into a php problem, do i need to do some configuration with this page? or some other php configuration to set it up?
-
I have some PC's and some wireless laptops in my home. Pc's function properly (Outlook 2007), but the laptops will not send e-mail from Outlook. They do receive e-mail, though. Verizon Support told me, a few days ago, that it was an Outlook issue a
-
Hi At the moment i have a contact manager application i am building. a contact has a title (mr/mrs/miss) and can have multiple addresses, multiple telephone numbers. CFC's dont allow me to do multiple inheritance. I can extend to 1 component then ext