AgentEd
Your visual Markdown editor, with frontmatter and token estimates. Write notes, project briefs, AI instructions and knowledge files, and keep them in your own folders. Free and open source.
LLM의 markdown Latex 문법을 한컴오피스 한글 수식편집기용 문법으로 변환하는 프로그램입니다.
Translation pending
ProductivityJavaScript · HTMLGitHub @minigu5OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗🌐 hwip.dshs.dev · 🧩 크롬 확장 프로그램
ChatGPT·Claude·Gemini 같은 AI가 쓴 수식을 한글 문서에 그대로 붙여넣으면 깨집니다. AI는 LaTeX로 수식을 쓰고, 한컴오피스 한글은 자체 수식 편집기 문법을 쓰기 때문입니다.
휩은 이 둘 사이를 이어 줍니다. LaTeX 수식을 한글 수식 문법으로 바꿔 주고, 결과를 한글 수식 편집기에 붙여넣으면 바로 올바른 수식으로 보입니다.
변환·인식·문서 처리는 모두 브라우저 안에서 실행되며, 수식·이미지·파일은 서버로 전송되지 않습니다. (REST API는 예외)
정적 파일이므로 index.html을 브라우저로 직접 열거나, GitHub Pages 등 정적 호스팅에 그대로 올릴 수 있습니다.
단, 이미지 OCR은 모듈 Web Worker를 사용하므로 정적 서버를 통해 여세요.
open index.html # macOS
별도 설치 없이 HTTP로 바로 쓸 수 있습니다.
엔드포인트: POST https://hwip.dshs.dev/api/convert
curl -X POST https://hwip.dshs.dev/api/convert \
-H "Content-Type: application/json" \
-d '{"latex": "$$\\frac{2\\pi}{24}$$"}'
# → {"result":"{2 pi} over {24}"}
const res = await fetch('https://hwip.dshs.dev/api/convert', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ latex: '$$\\frac{2\\pi}{24}$$' }),
});
const { result } = await res.json();
// result → "{2 pi} over {24}"
간단한 테스트는 GET도 됩니다:
GET https://hwip.dshs.dev/api/convert?latex=\frac{a}{b}
| 항목 | 내용 |
|---|---|
| 메서드 | POST (권장) · GET |
| 요청 본문 | { "latex": "<LaTeX 문자열>" } |
| 응답 (성공) | { "result": "<한글 수식>" } |
| 응답 (오류) | { "error": "<메시지>" } |
| CORS | 전체 허용 (*) |
const { convert } = require('./src/converter.js');
convert('$$\\frac{2\\pi}{24}(t - \\phi_1)$$');
// → "{2 pi} over {24} ( t `-` phi _{1} )"
브라우저에서는 <script src="src/converter.js"> 후 window.LatexToHwp.convert(...).
HWP 또는 HWPX 파일을 업로드하면, 문서 안의 텍스트 LaTeX 수식을 자동으로 찾아 한컴 수식 개체(hp:equation)로 교체한 뒤 새 HWPX 파일로 내보냅니다. 모든 처리는 브라우저에서 실행되며 파일은 서버로 전송되지 않습니다.
동작 방식:
Contents/section*.xml의 텍스트 런에서 $…$, $$…$$, \(…\), \[…\] 형태의 LaTeX를 탐지하고, 각각을 <hp:equation><hp:script>…</hp:script></hp:equation> 개체로 치환한 뒤 다시 ZIP으로 묶어 내보냅니다.참고한 오픈소스 프로젝트:
AI 사이트의 수식에 마우스를 올리면 바로 변환·복사하는 크롬 확장도 제공합니다. 크롬 웹스토어에서 바로 설치할 수 있습니다. 이 확장의 소스 코드는 별도 저장소로 관리됩니다.
| 입력 (LaTeX) | 출력 (한글 수식) |
|---|---|
\frac{a}{b} | {a} over {b} |
x^2 + y_{ij} | x ^{2} \+` y _{i j}` |
\sqrt{2} | sqrt {2} |
\sum_{i=1}^{n} | sum _{i \=` 1} ^{n}` |
\alpha \cup \beta | alpha union beta |
한글 수식 편집기에서 공백은 항(term) 구분 용도이며 화면에는 나타나지 않습니다. 백틱(
`)은 1/4 크기의 좁은 간격으로, 연산자 주위 간격을 보기 좋게 맞추는 데 쓰입니다.
수식 사진·캡처를 LaTeX로 인식한 뒤 그대로 한글 수식으로 변환합니다.
alephpi/FormulaNet (PP-FormulaNet-S 기반 파인튜닝, 20M 파라미터). image-to-text 비전-인코더-디코더 ONNX 모델로, transformers.js(@huggingface/transformers)가 ONNX Runtime Web(WASM)으로 실행합니다.src/ocr-worker.js)에서 별도 스레드로 수행해 UI를 막지 않습니다.app.js의 preprocessImage)file:// 직접 열기에서는 워커가 동작하지 않을 수 있으니 정적 서버로 여세요.npm test # 또는: node --test
전체 매핑(구조 명령·그리스 문자·연산/집합/화살표/기타 기호)과 한글 수식 고유 규칙은 CONVERSION_RULES.md에 정리되어 있습니다.
\left / \right는 한글 명세 권장 방식인 LEFT(/RIGHT)로 변환합니다 (내용 높이에 맞춰 괄호가 커집니다).\nabla 등 명세에 이미지로만 있는 항목)는 실제 한글 동작 검증이 필요합니다.Copyright (c) 2026 Shin Mingyu. All rights reserved.
본 프로젝트는 다음 조건 하에 이용 가능합니다 (Non-Commercial & Attribution):
변환 규칙은 한글과컴퓨터의 공개 문서 **「한글 문서 파일 형식 - 수식」(revision 1.2)**를 참고하여 개발했습니다. 본 제품은 한글과컴퓨터의 한글 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다.
런타임 의존성 JSZip v3.10.1(© Stuart Knightley, MIT)은 vendor/jszip.min.js에 라이선스 배너를 보존한 채 동봉했습니다.