| 开发者 | dheeyantra |
|---|---|
| 更新时间 | 2026年11月14日 15:07 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-only |
| 版权网址: | 版权信息 |
notranslate are left alone, and you can name other parts of the page to leave alone.dhee-indic-transcriber folder to /wp-content/plugins/, or install the zip from Plugins > Add New > Upload Plugin.Malayalam has two ways of drawing the same letters: traditional, with conjuncts stacked into one shape (സ്കൃ in സംസ്കൃതം), and reformed, with a visible chandrakkala between them. Which one a reader sees depends only on the font, and most phones and computers draw the reformed one. The plugin draws Malayalam in Gayathri, a traditional-orthography font by Swathanthra Malayalam Computing (SIL Open Font License, included in assets/fonts/gayathri), for readers who choose Malayalam. Only Malayalam letters change font. If you prefer your readers' own fonts, untick "Draw Malayalam with its traditional conjuncts" in the settings.
The other scripts need nothing extra: the fonts readers already have stack Devanagari, Bengali, Gujarati, Odia, Telugu and Kannada conjuncts properly, and Tamil and Gurmukhi show the virama by convention.
Set the bar position to Bottom of the screen in Settings > Dhee Indic Transcriber.
Add the class notranslate or itx-skip to it, or list CSS selectors for it under "Leave these alone" in the settings.
No, unless you set a default script other than "As written". Search engines see your text as you wrote it.
Yes: add ?itx_script=tamil to the address (and &itx_sanskrit=0 for spoken mode). The page opens in that script without changing the reader's saved choice. The script names are devanagari, bengali, gurmukhi, gujarati, odia, tamil, telugu, kannada, malayalam and roman.
Yes, with CSS custom properties in your theme or under Appearance > Customize > Additional CSS:
#indic-transcriber-bar { --itx-bg: #7c2d12; --itx-fg: #fff7ed; --itx-accent: #fde68a; }
The height is --itx-height on :root (44px by default).
IndicTranscriber.choose('malayalam') switches the page (pass '' for the text as written, and a second argument false for spoken mode). IndicTranscriber.current() returns the choice, IndicTranscriber.hasIndic() says whether the page has Indic text, and IndicTranscriber.refresh() reconverts the page and looks for Indic text again: a site that swaps its content without loading a new page calls it after each change of page, and the bar then shows or hides to match. The engine itself is SreeVidya.transliterate(text, 'malayalam', { sanskrit: true }).
The bar shows only on pages with Indic text to convert: Devanagari, Bengali, Gurmukhi, Gujarati, Odia, Tamil, Telugu, Kannada or Malayalam letters. The server makes a first guess from the page's posts, title and site name, so the bar does not pop in or out, and the reader's browser then checks the whole page. The indic_transcriber_page_has_indic filter overrides the first guess.
Yes, with a filter:
add_filter( 'indic_transcriber_enabled', function ( $on ) { return $on && ! is_page( 'checkout' ); } );
Page caching, yes. If a plugin delays JavaScript until the visitor interacts, either exclude indic-transcriber from that or turn off "Hide the page until it has been converted", or readers who have chosen a script will see a blank page for 1.5 seconds.
IndicTranscriber.hasIndic(), and IndicTranscriber.refresh() now checks the page for Indic text again.