/** * Copyright (c) 2021 lingdocs.com * * This source code is licensed under the GPL3 license found in the * LICENSE file in the root directory of this source tree. * */ import { FormEvent, useState } from "react"; import { Helmet } from "react-helmet"; import { scriptToPhonetics } from "../lib/scriptToPhonetics"; const preStyle: React.CSSProperties = { overflowX: "auto", whiteSpace: "pre-wrap", wordWrap: "break-word", lineHeight: "1.5", }; const ScriptToPhonetics = () => { const [text, setText] = useState(""); const [result, setResult] = useState(""); function handleConversion(e: FormEvent) { e.preventDefault(); setResult("Converting... Please wait..."); setTimeout(() => { setResult(scriptToPhonetics(text)); }, 50); } return
Script to Phonetics - LingDocs Pashto Dictionary

Script to Phonetics