I would like to extract the date for this website, and using this xpath gives me the correct date, however, I would like to change the language from Portuguese to English. How would I go about doing it? Thank you!
//span[contains(#class,'time')]
Output: 11.MAIO.2020
Related
In LibreOffice, I wish to change the weekdays names to have something shorter.
In French, the date format "ddd dd/mm/yy" applied to today 2021-08-17 gives : "mar. 17/08/21". I would prefer "ma 17/08/21" to have narrower columns.
So I wish to change the existing weekdays names "lun., mar., mer., jeu., even., sam., dim." to something shorter : "lu, ma, me, je, ve, sa, di", through the format used by LibreOffice.
I played with French locales (Swiss French, etc.) but it is not satisfactory. I tried to change the list for the sort but it has no effect on the date format.
Is it possible to change the list LibreOffice uses for the weekdays ? How shall I proceed ?
You cannot do this with normal formatting (unless you require a change to the national date standard).
However, you can easily get the desired date representation using the TEXTE() and REGEX() functions.
=REGEX(TEXT(A1;"OOO JJ/MM/AA");"(..)([^\.]*\.)(.+)";"$1$3";"g")
Or shorter notation using LEFT() (GAUCHE()):
=LEFT(TEXT(A1;"OOO");2)&TEXT(A1;"\ JJ/MM/AA")
Remember to check that the cell format is French, otherwise you will get an error (not every language uses O-J-A characters)
I am currently experimenting with Google's STT engine for the german language. I am looking to capture full dates from an utterance. This works fine as long as I utter the month as a word (September, October..) "Erster Januar 1980" is transcribed correctly.
In german it is common to not say the name of the month, but just the ordinal number of the month like "Erster Erster Neunzehnhundertachtzig", where the first word is the day, the second the month followed by the year. Uttering this, the google engine returns only garbage. I have also tried it with MS Azure and it works fine.
My question is now: Has anyone else stumbled over this, and maybe has a hint how to work around this problem? I have already tried to add a SpeechContext $FULLDATE but it does not make a difference.
Cheers
S
Update 2022
A new Dynamic Class Token $OOV_CLASS_FULLDATE has been introduced and it is available for de-DE, de-AT and de-CH language codes.
I have a wiki in persian. In my preferences (user preferences), I can change date format for persian. And, I can see that the date format is as follow:
This picture shows that the user date format is correct and in persian, which is correct.
But when I have signed out, The date format of site is not persian. It looks like this:
This picture shows that the default date format is not persian, which is not the case I want to be.
I want the default date format of the site be in persian, too.
It would be great if some one guide me how to change the default time zone and date format of the wiki site.
Wiki Site Address: wiki.aicd.ir
I have found the answer as follow:
Add the following code at the end of LocalSettings.php file to change the default date format to 'persian':
$wgDefaultUserOptions['date'] = 'persian';
Wiki Site to Check
Apple's search API documents specify:
lang =
The language, English or Japanese, you want to use when returning search results. Specify the language using the five-letter codename. For example: en_us.
The default is en_us (English).
examples: en_us, ja_jp
However, I cannot find this 5 letter standard codename. Are they just expecting a ISO 639-1 Code concatenated with a 2 letter country code?
Has anybody ran into this issue before?
As you can see the document below, en_us, ja_jp is not a "example" but the supported values for lang parameter key.
https://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html
This means, currently this api supports only these two langeages.
Hope this helps.
The question is quiet simple: I've got an arabic text with an US formated Date in it. What is the correct display order of this date? Is it(for instance) 01/10/2009 or 2009/10/1?
The bidi algorithm recognizes the numbers an slashes as neutral and orders them in the same direction like the surrounding text. So the date should be backwards but that's not what any browser does. On the other hand, i can't find any rule in the unicode bidi algorithm which excludes date patterns. So, what is correct here and (especially) why?
without going deep in the technical details
I can tell that 01/10/2009 is the correct one and some times it's 10/01/2009
but it's never 2009/10/1