GithubHelp home page GithubHelp logo

boj-user-translation's Introduction

boj-user-translation

English / 한국어

User translation repository for Baekjoon Online Judge. To view translations on the problem page, see o-ey.

If you don't want to translate but to fix typos, please refer to the section Fixing Typos.

How to Contribute

Requires git and python 3.

Setting Up Environment

Fork and clone the repository, and type the following command to move to the repository directory.

cd <location of cloned repository>

Adding a Translation

Move to the your repository directory, and type the following command to create new translation files.

python3 new-tr.py <problem-id> <language-code> <username>
  • <language-code> should be a valid IETF language tag, with - replaced by _ (as in en_US, ko_KR).

A file will be generated as src/<problem-id>/<language-code>-<username>.html, and The file index will be updated accordingly. After translating the content of generated file, type the following command to upload your translation to GitHub.

git add .
git commit -m "작업 내용"
git push

Removing a Translation

Move to the your repository directory, and type the following command.

python3 del-tr.py <problem-id> <language-code> <username>

Testing Your Translation

Click the button of o-ey extension, and enter the URL of your translation repository. Uploaded change will be applied in a few minutes, which you can view on BOJ.

Creating a Pull Request

Create a Pull Request from your forked repository into the base repository. The maintainer will soon review your request and merge it.

Fixing Typos

Follow the section How to Contribute, except for:

On running the new-tr command

You should enter BOJ's internal language name instead of an IETF language tag.

  • Problems providing a single language (no language button): Original
  • Korean: Korean
  • English: English
  • For other languages, please leave an issue.

You should enter typo instead of your username. Mind that there is no dedicated space for your contribution credit.

Translation Rules

  • No new sections can be used now.
  • No XSS (or any malicious HTML injection) is allowed.
  • You can rearrange paragraphs, rewrite sentences, or change character names if you follow the problemsetter's intention.
  • If the problem has defects that should be resolved, you can warn in translation but please write together that the warning is inserted by the translator.
  • Regarding formats, please refer to formatting guide.
  • Under constraints above, translate freely.
  • For languages not in my fluent zone, approval for pull requests can be delayed.
  • Before sending pull requests, please review the local changes via o-ey. You can see the local changes by adding your repository to the repository list of o-ey.

boj-user-translation's People

Contributors

barrelzebra2149 avatar bubbler-4 avatar byeongkeunahn avatar d0h000n avatar doubledeltas avatar gubshig avatar halinkim avatar haruharo101 avatar iamgamja avatar iktk1 avatar jshyun912 avatar kidw0124 avatar kiwiyou avatar knoj014 avatar ldhhello avatar masooka avatar mega-bix avatar pasteldream-ps avatar pjshwa avatar quntnim avatar ryuzu3747 avatar sorohue avatar thregium avatar w8385 avatar wider93 avatar wzrabbit avatar yup0927 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

boj-user-translation's Issues

`new-tr.py` 가 작동하지 않아요

안녕하세요!

며칠 전부터, new-tr.py 를 터미널에서 실행하면 문제에 대응되는 HTML 파일이 생성되는 대신, 아래의 오류가 발생하는 것을 확인했습니다.
image

Error: substring not found

해당 문제의 HTML 문서가 깨져서 다른 문제 번호로도 시도해 보았지만, 결과는 같더라고요.

그래서 new-tr.py 를 직접 디버깅해서 어떤 HTML 파일을 불러오는지를 확인해 보았는데요, 아래와 같이 403 Forbidden으로 막힌 HTML 을 불러오더라고요. 크롤링 과정에서 문제가 있을 것이 예상됩니다. 크롤링으로 가져온 HTML 문서가 403 Forbidden fallback 페이지여서, 이후 가져온 데이터를 파싱하는 과정에서 문제가 생겨 Error: substring not found 오류가 발생한 것 같습니다.
image

<html>
  <head>
    <title>403 Forbidden</title>
  </head>
  <body>
    <center>
      <h1>403 Forbidden</h1>
    </center>
  </body>
</html>

백준에서 특정 크롤링을 방어하는 로직을 사용한다는 이야기를 듣기는 했지만, 사실인지는 잘 모르겠어요.
구동 환경은 Windows 10, Python 3.12 버전입니다.

쉬워 보이는 문제 같지는 않지만, 만약 해결이 가능하시다면 검토해 주시면 감사하겠습니다!

new_tr.py가 macOS 환경에서 제대로 작동하지 않습니다.

Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
from http.client import HTTPSConnection

제 macOS 환경에서 new_tr.py가 위의 오류를 띄우며 제대로 작동하지 않습니다. (macOS Ventura 13.4.1, Apple M1 Pro 환경에서 테스트했습니다)

macOS에서도 new_tr.py가 제대로 작동하게 수정해 주세요.

27332 오역 (JOI 입력 형식)

image
image

원문과 입력 형식이 다릅니다.

+ JOI에 이런식으로 <pre> 태그에 입력형식이 주어지는 문제들이 많은데, new-tr.py 실행으로 만들어지는 html 파일에는 제대로 반영되지 않는 것 같습니다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.