Google Actions does not support ssml lang despite it being documented as beta - actions-on-google

On https://developers.google.com/assistant/conversational/ssml-beta there is a good introduction of the use of xml:lang to change the language of a text fragment, as in
"The title of this book is <lang xml:lang="fr-FR">La Peste, de Camus".
(escaped quotes because in a json structure)
But this does not seem to work on a real action. Any advice?

Related

Polylang: How does the linking of right page by changing the attribute "href" work?

I have a question about linking the right page with Polylang.
I have a hard-coded anchor, which is basically a “back home” link.
It looks like this:
<a href=“magazin” class=“article-type-inner”><?php pll_e(‘Close’); ?></a>
I have already implemented a string and it works fine in the posts in both languages, but how can I change the “Href” to the right language?
For example my default language is English and the other language is French. If I am on a french post I will return to the English page… Is there any solution?
Thank you.
Ideally you should not hardcode any strings or URL's, here is some options for you:
Use pll_home_url() if your intention is to redirect to the home page. pll_home_url() accepts optional parameter $slug (2-letters code of the language) to switch between languages if needed.
Use get_permalink(), the_permalink() or get_the_permalink(). You can pass page_id as first argument. Make sure post/pages/cpt's are linked properly. E.g. the_permalink(100).
Worst case scenario - use if/else in combination with pll_current_language(). Not recommended.

How to change quiz word to test in moodle

I'm using moodle version 2.8 with evolve theme. The requirement is to replace "quiz" word with "test" word everywhere in moodle.
Please help me out in this.
Thanks in advance
You will need to look in the Language Customisation.
Home > Administration block > Site administration > Language > Language customisation
Choose language, select "Open for editing" ("Continue"). Highlight all components (shift-select) in the list, and then search for your "quiz" string using the "Only strings containing" field.
Note that this will give you every single instance, and that will include things like "the course does not contain any quiz activities" and so on.
The names of the strings are usually indicative of whether the text will present to an average user or to only admins/managers - for instance the above text is "config_no_quizzes_in_course" and that would suggest that it only displays when configuring the quiz results block. You may choose not to change all of the instances of the word quiz, and only those ones which will be user-facing.

How to add trademark symbol to project name in Doxygen?

Is it possible to add a trademark symbol to project name in Doxygen?
PROJECT_NAME = "Company Product Name(tm)"
This appears as the home page title, and it would be very nice to have trademark symbol there.
p.s.
This does not work:
PROJECT_NAME = "Company Product Name&tm;"
You should be able to use ™ instead of &tm;.
Doxygen's support for the trademark appears to be incomplete / inconsistent.
&tm; is documented as a supported character entity by Doxygen, but it isn't specified by HTML 4.0. This character entity is rendered correctly in the body of the document, but is not handled correct in the page header.
™ and ™ are the entity number representations of ™ supported by HTML 4.0, however entity number representations are not supported by Doxygen, they will be rendered correctly in the page header, but will not be handled by doxygen in the body of the document.
™ is the character entity in HTML 4.0 for ™, however it is not listed as a supported character entity in Doxygen. Luckily, this appears to be an error in the documentation as ™ is handled correctly in both the page header and the body of the document.

Roadkill wiki engine, Creole markup

I'm using the Roadkill wiki engine and trying to paste xml into the pages like this: {{{this is a test}}}
but the "" text is not displaying, it only shows "this is a test"
Is there another way to escape it so that the page shows "this is a test"?
I found a solution to this. Roadkill has a tokens file (App_Data\tokens.xml) in there you can set a text token to look for, and a replacement value. So to fix the "" and "" elements, I added the following to the tokens file:
<TextToken>
<Name>Begin Body Element</Name>
<Description><![CDATA[
fixes the body element problem
]]>
</Description>
<SearchRegex><Body></SearchRegex>
<HtmlReplacement><![CDATA[<body>]]>
</HtmlReplacement>
</TextToken>
<TextToken>
<Name>End Body Element</Name>
<Description><![CDATA[
fixes the body element problem
]]>
</Description>
<SearchRegex></Body></SearchRegex>
<HtmlReplacement><![CDATA[</body>]]>
</HtmlReplacement>
</TextToken>
In version 1.7 onwards you can use the inbuilt syntax highlighting:
[[[code lang=XML|
your XML here
]]]
This gives you client-side syntax highlighting from SyntaxHighlighter. The Roadkill documentation is generally a few months behind but it does eventually contain the information you need!

Capybara, Cucumber, GWT problem asserting the text with inline styles

I was to check to see if a text with inline styles exist.
For example page.should have_content(text) works for raw text such as
"Time out",
however it does not work for the text
"Time out. Please Click here to retry".
Also I have been having trouble trying to locate an anchor with inline style as well ex:
<a>click <strong>here</strong>to retry</a>.
Thanks.
You are correct that have_content tests for text, not markup. You can do this though:
page.body.should include('... <a>...</a> ...')
Regarding your second question, I don't think it's possible to do page.has_link? with markup. You would have to construct your own XPath expression and then use page.should have_selector(:xpath, '...'). Or test for the raw HTML using page.body of course.