how do i input chinese pinyin

How do i input chinese pinyin into Libreoffice documents

Your question has nothing to do with LibreOffice. Use an input method available for your operating system/desktop environment.