עירובין י:ג · Eruvin 10:3

הָיָה קוֹרֵא בַסֵּפֶר עַל הָאַסְקֻפָּה, נִתְגַּלְגֵּל הַסֵּפֶר מִיָּדוֹ, גּוֹלְלוֹ אֶצְלוֹ. הָיָה קוֹרֵא בְרֹאשׁ הַגַּג וְנִתְגַּלְגֵּל הַסֵּפֶר מִיָּדוֹ, עַד שֶׁלֹּא הִגִּיעַ לַעֲשָׂרָה טְפָחִים, גּוֹלְלוֹ אֶצְלוֹ. מִשֶּׁהִגִּיעַ לַעֲשָׂרָה טְפָחִים, הוֹפְכוֹ עַל הַכְּתָב. רַבִּי יְהוּדָה אוֹמֵר, אֲפִלּוּ אֵין מְסֻלָּק מִן הָאָרֶץ אֶלָּא כִמְלֹא מַחַט, גּוֹלְלוֹ אֶצְלוֹ. רַבִּי שִׁמְעוֹן אוֹמֵר, אֲפִלּוּ בָאָרֶץ עַצְמוֹ גּוֹלְלוֹ אֶצְלוֹ, שֶׁאֵין לְךָ דָּבָר מִשּׁוּם שְׁבוּת עוֹמֵד בִּפְנֵי כִתְבֵי הַקֹּדֶשׁ:
One who was reading a sacred book in scroll form on Shabbat on an elevated, wide threshold, and the book rolled from his hand into the public domain, he may roll it back to himself, since one of its ends remains in his hand. If he was reading on top the roof, which is a full-fledged private domain, and the book rolled from his hand, as long as the edge of the book did not reach within ten handbreadths above the public domain, the book is still in its own domain, and he may roll it back to himself. However, once the book has reached within ten handbreadths above the public domain, it is prohibited to roll the book back to oneself. In that case, he may only turn it over onto the side with writing, so that the writing of the book will be facedown and not exposed and degraded. Rabbi Yehuda says: Even if the scroll is removed only a needle breadth from the ground, he rolls it back to himself. Rabbi Shimon says: Even if the scroll is on the ground itself, he rolls it back to himself, as you have nothing that was instituted as a rabbinic decree to enhance the character of Shabbat as a day of rest that stands as an impediment before the rescue of sacred writings.

Word-by-word Breakdown (מילים ושרשים)

הָיָה → One who was [ה - י - ה]קוֹרֵא → reading [ק - ר - א]בַסֵּפֶר → in a book [ס - פ - ר]עַל → upon הָאַסְקֻפָּה → the threshold [ס - ק - פ]נִתְגַּלְגֵּל → and it rolled [ג - ל - ג - ל]הַסֵּפֶר → the book [ס - פ - ר]מִיָּדוֹ → from his hand [י - ד - ה]גּוֹלְלוֹ → he may roll it [ג - ל - ל]אֶצְלוֹ → to himself הָיָה → One who was [ה - י - ה]קוֹרֵא → reading [ק - ר - א]בְרֹאשׁ → on top of [ר - א - ש]הַגַּג → the roof [ג - ג - ג]וְנִתְגַּלְגֵּל → and it rolled [ג - ל - ג - ל]הַסֵּפֶר → the book [ס - פ - ר]מִיָּדוֹ → from his hand [י - ד - ה]עַד → until [ע - ד - ד]שֶׁלֹּא → not [ל - א]הִגִּיעַ → it reached [נ - ג - ע]לַעֲשָׂרָה → ten [ע - ש - ר]טְפָחִים → handbreadths [ט - פ - ח]גּוֹלְלוֹ → he may roll it [ג - ל - ל]אֶצְלוֹ → to himself מִשֶּׁהִגִּיעַ → Once it reached [נ - ג - ע]לַעֲשָׂרָה → ten [ע - ש - ר]טְפָחִים → handbreadths [ט - פ - ח]הוֹפְכוֹ → he turns it [ה - פ - ך]עַל → upon הַכְּתָב → the writing [כ - ת - ב]רַבִּי → Rabbi [ר - ב - ב]יְהוּדָה → Yehuda [י - ד - ה]אוֹמֵר → says [א - מ - ר]אֲפִלּוּ → Even if אֵין → it is not [א - י - ן]