Skip to content

Phonetic transcription tools with React JS for input, showing phonetic font, etc.

Notifications You must be signed in to change notification settings

albirrkarim/react-phonetic-transcription

Repository files navigation

React Phonetic Transcription

Phonetic transcription tools with react js for input, outputing, etc.

React Phonetic Transcription

Donate via paypal

Buy Me a Coffee at ko-fi.com

Future update

Let me know what you want. You can write issue on my repo.

Example

import React,{useState} from "react";
import { InputPhonetic, TextToPhonetic } from "react-phonetic-transcription";

const [text,setText] = useState("");

<TextToPhonetic>
    {text}
</TextToPhonetic>

<InputPhonetic
  sx={{
    mt: 2,
  }}
  addValue={(newValue) => {
    setValue(text + newValue);
  }}
/>

API

function InputPhonetic({
    addValue, // for the output if you click the phonetic symbol
    useRemember = true, // Remembering your last phonetic symbol
    dataDefault = common_java,
    height = "300px", // the height of phonetic keyboard
    ...rest
})
function TextToPhonetic({ children, ...rest }) {
  return (
    <span className="fonetis" {...rest}>
      {children}
    </span>
  );
}

About

Phonetic transcription tools with React JS for input, showing phonetic font, etc.

Resources

Stars

Watchers

Forks