Sending bolded words through Telegram - formatting

I'm building a chatbot and I need to send some words in bold. According to the Telegram documentation, to make a word bold, you need to put two asterisks at the beginning of it and two at the end. However, it doesn't work:
So I was wondering if anyone knows if anything has changed and if the documentation is out of date
I tried with two asterisks and with HTML tags

Related

Change Bullet Points to Content Control Check Boxes?

Is it possible to make a document with pre-existing bullet points (or blank boxes made to be bulletpoints) into clickable content control check boxes?
Also I’m having difficulty using a find and replace macro to change blank square boxes to content control check boxes in a document I’m using. I don’t know if it has to do with the fact that maybe some of these boxes are amongst different fonts or if the find and replace tool has difficulty picking up symbols but everything I’ve tried hasn’t worked out.
I tried find and replace macros and it didn't work. I also tried regular find and replace and it didn't work

Need to prevent entry of "U+3000" full-width Japanese spaces in Word doc

Short version:
So I have a Word doc with very specific formatting guidelines, into which Japanese users have to input text. Despite being specifically told not to, instead of using "tab" to create indents, they will very often use full-width Japanese spaces (U+3000). I want to somehow prevent the entry of this character to avoid having to reformat.
Long version:
We send out Japanese/English-language script templates for Japanese users to input their own dialogue into. They will often ignore the formatting of the script, using hard returns and full-width spaces to hack-format the doc (very common practice among Japanese Word users). This leads to unnecessary time spent on re-formatting. As I see it I have three options:
Prevent the entry of undesired characters, by blocking the character
or setting up a dialogue box every time it is used.
Automate a dialogue box to pop up when the document is saved, displaying a message to users to make sure no undesired characters were used.
Create a macro to auto-replace undesired characters on my end.
Any suggestions? Help is very much appreciated.

How do I duplicate a PDF with some text replacement and redaction

I am exploring couple of third party components to work with PDF through C#. These are Aspose.pdf.net and iTextSharp. Following are the details about what I am exploring them for:
I have some PDFs that contain sensitive information in form of text, like name of person, city, etc.
These PDFs need to be duplicated into another copy but while creating duplicated copy, sensitive text needs to be searched & replaced with some dummy text. The replacement is essential to avoid tracing original information, by any fraudulent means.
Also, the replaced text requires to be redacted.
Finding text is expected to support RegEx, as there could be variations of text that needs to be masked.
Could you please assist me how can this be done using iTextShart.
Thanks in advance.
iTextSharp is capable of complete redaction(both visual as well as the data stored in the pdf) using the PdfSweep module (http://itextpdf.com/itext7/pdfsweep).
In order to have the redaction happen after text search you'd have to:
Extract the text from the document (can be done using iText).
Search through the extracted text and obtain the positions of the text you want redacted. (needs an implementation from your side)
Use these positions to define where PdfSweep has to redact. (a couple of lines of code)
By default, PdfSweep visualy redacts by drawing coloured bars over the locations, and internally removes the text and any image.
While it is technically possible to use iText to fill the redacted positions with some dummy text, the implementation thereof has a number of pitfalls.
PdfSweep is closed source module for iText7, you can contact our sales team for more information on the licensing.

Google Custom Search in Cyrillic

I need some help with Cyrillic support. First, I do not know if it is possible but here it is what I want to do:
When typing in Google Custom Search is it possible letters to be changed automatically in Cyrillic characters? This actually should "replace" Alt+Shift function, so that user should not change his keyboard language and then start searching, but as he typing in the search letters should convert instantly.
Right now I am using "onkeyup="this.form.s.value=toCyr(this.form.s.value)" for my website and I was wondering if something similar could be done with Google Custom Search.
I don't know about replace , but google does have Phonetic typing which could be vary helpful http://www.google.com/inputtools/try/

Parse Body Text from PDF

I have just recently been experimenting with parsing the text data from a PDF document using iTextSharp in a VB2010 app. the document doesn't contain any images or other fancy elements, just text. Ive read some articles and used some code snippets and it looks promising. However, what Ive been trying to do is just parse out the body of each page, minus a header or footer. I haven't found any guidance for that particular function.
Currently using the snippet found here Reading PDF content with itextsharp dll in VB.NET or C# but it parses all text in a page. There's got to be a way to just get the body. Or at least I hope so.
PDFs generally do not contain information about logical structure of contained text.
So there are no headers, footers, body, paragraphs and anything like this in a PDF. There is only bunch of operations like "draw this glyph here", "move to this position and draw that group of glyphs there". I wrote glyph and not character because PDFs are not required to contain readable text. Only visual appearance required to be specified.
One exception is Tagged PDF but most of PDFs in the wild are not tagged.
Given all of the above you are probably left with following approach:
Extract all text from each page
Analyze text and find similar parts at the beginning / end of each page
Remove similar parts
This is a heuristic-based detection, so it probably won't always give excellent results.